Fork me on GitHub
#tools-deps
<
2019-12-30
>
seancorfield00:12:51

seancorfield/clj-new {:mvn/version "0.8.1"} -- https://github.com/seancorfield/clj-new/releases/tag/v0.8.1 -- adds pom.xml to app template as well; adds jar/uberjar building aliases to all three built-in templates; expands documentation on the built-in templates how to modify pom.xml generation via the -e / --env options.

seancorfield00:12:21

In particular, note that projects generated from the app template now let you run clojure -A:uberjar to produce a JAR file that can be run with java -jar -- the :uberjar alias includes a compile call on the main namespace and the classes folder is added to the paths when building the JAR.

felipebarros09:12:57

I would like to mimic the effect of npm install or lein deps with tools-deps. That is, to fetch the dependencies and exit. Running clj -R:alias always leaves me in a running REPL and I could not find an option in the documentation to do what I want.

delaguardo09:12:56

clj -Stree will fetch all dependencies, print out complete deps tree and exit

🎉 1
felipebarros09:12:44

Thanks, that will work :)

borkdude10:12:33

anything with -Sforce works

👍 1
borkdude10:12:10

e.g. -Sforce -Spath also works

alexmiller14:12:19

These are good answers. you can also clj -e nil

👍 1
alexmiller14:12:36

if you want to run something and immediately exit