Fork me on GitHub

seancorfield/clj-new {:mvn/version "0.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.


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.


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.


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

🎉 4

Thanks, that will work :)


anything with -Sforce works

👍 4

e.g. -Sforce -Spath also works

Alex Miller (Clojure team)14:12:19

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

👍 4
Alex Miller (Clojure team)14:12:36

if you want to run something and immediately exit