Merge pull request #103 from rasom/fix/leiningen-java-precompilation

add pre compilation of java files in order to make lein run work without cp dancing
This commit is contained in:
Teemu Patja 2017-10-30 17:49:15 +02:00 committed by GitHub
commit 2e9cea3562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -116,8 +116,10 @@
:uberjar-name "commiteth.jar" :uberjar-name "commiteth.jar"
:source-paths ["env/prod/clj"] :source-paths ["env/prod/clj"]
:resource-paths ["env/prod/resources"]} :resource-paths ["env/prod/resources"]}
;; :precomp profile allows to compile classes from commiteth.eth.contracts
;; namespace before compiling clojure code. Otherwise ClassNotFound exception
;; will be thrown
:precomp {:target-path "target/base+system+user+dev/" }
:dev {:dependencies [[prone "1.1.4"] :dev {:dependencies [[prone "1.1.4"]
[ring/ring-mock "0.3.1"] [ring/ring-mock "0.3.1"]
[ring/ring-devel "1.6.2"] [ring/ring-devel "1.6.2"]
@ -144,6 +146,7 @@
:optimizations :none :optimizations :none
:pretty-print true}}]} :pretty-print true}}]}
:prep-tasks ["build-contracts" ["with-profile" "precomp" "javac"]]
:doo {:build "test"} :doo {:build "test"}
:source-paths ["env/dev/clj" "test/clj"] :source-paths ["env/dev/clj" "test/clj"]
:resource-paths ["env/dev/resources"] :resource-paths ["env/dev/resources"]