forked from clj-commons/seesaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add deps.edn setup and AOT compilation of seesaw.ExceptionHandler
- Loading branch information
Showing
4 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
(ns build | ||
(:require [clojure.tools.build.api :as b])) | ||
|
||
(def basis | ||
(b/create-basis {:project "deps.edn"})) | ||
|
||
(def classes-dir | ||
"classes") | ||
|
||
(def jar-file | ||
"seesaw.jar") | ||
|
||
(defn clean | ||
[& _] | ||
(b/delete {:path "classes"})) | ||
|
||
(defn compile-java | ||
[& _] | ||
(clean) | ||
(b/javac { | ||
:class-dir classes-dir | ||
:basis basis | ||
:src-dirs ["jvm"] | ||
:javac-options ["--release" "8"]})) | ||
|
||
(defn compile-clojure | ||
[& _] | ||
(compile-java) | ||
(b/copy-dir {:src-dirs ["src"] | ||
:target-dir classes-dir}) | ||
(b/compile-clj {:basis basis | ||
:class-dir classes-dir | ||
:src-dirs ["src"]})) | ||
|
||
(defn jar | ||
[& _] | ||
(compile-clojure) | ||
(b/jar {:class-dir classes-dir | ||
:jar-file jar-file})) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{:paths ["src" "classes"] | ||
:deps {com.miglayout/miglayout {:mvn/version "3.7.4"} | ||
com.jgoodies/forms {:mvn/version "1.2.1"} | ||
org.swinglabs.swingx/swingx-core {:mvn/version "1.6.3"} | ||
j18n/j18n {:mvn/version "1.0.2"} | ||
com.fifesoft/rsyntaxtextarea {:mvn/version "2.5.6"}} | ||
:aliases {:build {:ns-default build | ||
:extra-deps {io.github.clojure/tools.build {:git/tag "v0.7.5" | ||
:git/sha "34727f7"}}} | ||
:test {:extra-paths ["test"] | ||
:extra-deps {com.stuartsierra/lazytest {:mvn/version "1.1.2"}}} | ||
:run-test {:main-opts ["-m" "lazytest.main" "test"]}} | ||
:mvn/repos {"central" {:url "https://repo1.maven.org/maven2/"} | ||
"clojars" {:url "https://clojars.org/repo"} | ||
"stuartsierra" {:url "https://stuartsierra.com/maven2"}}} |