fix up project profiles a bit and adjust some build settings

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 (???)
This commit is contained in:
Gered 2021-12-22 18:30:50 -05:00
parent 898126d1fd
commit fb7c98b84d
2 changed files with 16 additions and 12 deletions

View file

@ -21,16 +21,20 @@
: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!)]}
: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!)]}
:uberjar {:source-paths ["env/prod/src"]
:resource-paths ["env/prod/resources"]
:omit-source true
:aot :all}}
:release {:source-paths ["env/release/src"]
:resource-paths ["env/release/resources"]}
:aliases {"uberjar" ["do" ["clean"] ["uberjar"]]})
:release/uberjar {:omit-source true
:aot :all}
:uberjar [:release :release/uberjar]}
)

View file

@ -16,8 +16,8 @@
data
"env/dev/resources"
"env/dev/src"
"env/prod/resources"
"env/prod/src"
"env/release/resources"
"env/release/src"
["resources/logback.xml" (render "resources/logback.xml" data)]
["src/{{root-ns-path}}/core.clj" (render "src/root_ns/core.clj" data)]
["test/{{root-ns-path}}/core_test.clj" (render "test/root_ns/core_test.clj" data)]