separate out the uberjar profile so that the bits that control the classpath are in a separate profile (now called "release") which can be more easily brought in separately during development to test, without being forced to build an uberjar to test remove the uberjar alias, which only was added because i did not realize that leiningen by default automatically does a clean before building a jar (???)
41 lines
1.6 KiB
Clojure
41 lines
1.6 KiB
Clojure
(defproject {{name}} "0.1.0-SNAPSHOT"
|
|
|
|
:description "FIXME: write description"
|
|
:url "http://example.com/FIXME"
|
|
:license {:name "MIT License"
|
|
:url "http://opensource.org/licenses/MIT"}
|
|
|
|
:dependencies [[ch.qos.logback/logback-classic "1.2.7"]
|
|
[cprop "0.1.19"]
|
|
[hiccup "1.0.5"]
|
|
[http-kit "2.5.3"]
|
|
[javax.servlet/servlet-api "2.5"]
|
|
[metosin/reitit "0.5.15"]
|
|
[metosin/ring-http-response "0.9.3"]
|
|
[mount "0.1.16"]
|
|
[nrepl "0.9.0"]
|
|
[org.clojure/clojure "1.10.0"]
|
|
[org.clojure/tools.logging "1.2.1"]
|
|
[ring/ring-devel "1.9.4"]]
|
|
|
|
:main {{root-ns}}.core
|
|
|
|
:repl-options {:init-ns {{root-ns}}.core}
|
|
:target-path "target/%s/"
|
|
|
|
:profiles {:dev {:source-paths ["env/dev/src"]
|
|
:resource-paths ["env/dev/resources"]
|
|
:dependencies [[pjstadig/humane-test-output "0.11.0"]]
|
|
:injections [(require 'pjstadig.humane-test-output)
|
|
(pjstadig.humane-test-output/activate!)]}
|
|
|
|
:release {:source-paths ["env/release/src"]
|
|
:resource-paths ["env/release/resources"]}
|
|
|
|
:release/uberjar {:omit-source true
|
|
:aot :all}
|
|
|
|
:uberjar [:release :release/uberjar]}
|
|
|
|
)
|