Liking cljdoc? Tell your friends :D

CLI Tools Usage

If you are using the latest prerelease of the Clojure CLI, 1.10.3.905 onward, you can install depstar as a "tool" instead of updating your deps.edn file and then invoke it using the following commands:

clojure -Ttools install com.github.seancorfield/depstar '{:git/tag "v2.1.267"}' :as depstar
# make an uberjar:
clojure -Tdepstar uberjar :jar MyProject.jar
# make a thin JAR:
clojure -Tdepstar jar :jar MyLib.jar

depstar's deps.edn has a :tools/usage key that specifies the default namespace is hf.depstar so, in addition to jar and uberjar above, the following commands are also available:

  • aot -- perform AOT compilation into a :target-dir directory,
  • pom -- create/sync a pom.xml, optionally into a :target-dir directory,
  • build -- build a JAR file -- either :jar-type :thin or :jar-type :uber -- from the project and any :target-dir directory.

See [Usage with tools.build] for more details of all these tasks. See All the Options for the full list of options that these depstar commands accept.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close