Entry point for clojure -X options.
Entry point for clojure -X options.
(jar options)
Generic entry point for jar invocations.
Can be used with clojure -X
:
In :aliases
:
:jar {:replace-deps {seancorfield/depstar {:mvn/version ...}}
:exec-fn hf.depstar/jar
:exec-args {}}
Then run:
clojure -X:jar :jar MyProject.jar
If the destination JAR file is fixed, it could be added to :exec-args
in
deps.edn
:
:jar {:replace-deps {seancorfield/depstar {:mvn/version ...}}
:exec-fn hf.depstar/jar
:exec-args {:jar MyProject.jar}}
:jar
can be specified as a symbol or a string.
Generic entry point for jar invocations. Can be used with `clojure -X`: In `:aliases`: ```clojure :jar {:replace-deps {seancorfield/depstar {:mvn/version ...}} :exec-fn hf.depstar/jar :exec-args {}} ``` Then run: ``` clojure -X:jar :jar MyProject.jar ``` If the destination JAR file is fixed, it could be added to `:exec-args` in `deps.edn`: ```clojure :jar {:replace-deps {seancorfield/depstar {:mvn/version ...}} :exec-fn hf.depstar/jar :exec-args {:jar MyProject.jar}} ``` `:jar` can be specified as a symbol or a string.
(uberjar options)
Generic entry point for uberjar invocations.
Can be used with clojure -X
:
In :aliases
:
:uberjar {:replace-deps {seancorfield/depstar {:mvn/version ...}}
:exec-fn hf.depstar/uberjar
:exec-args {}}
Then run:
clojure -X:uberjar :aot true :jar MyProject.jar :main-class project.core
If any of the destination JAR file, main class, and/or AOT setting are fixed,
they could be added to :exec-args
in
deps.edn
:
:uberjar {:replace-deps {seancorfield/depstar {:mvn/version ...}}
:exec-fn hf.depstar/uberjar
:exec-args {:aot true
:jar MyProject.jar
:main-class project.core}}
:jar
can be specified as a symbol or a string.
Generic entry point for uberjar invocations. Can be used with `clojure -X`: In `:aliases`: ```clojure :uberjar {:replace-deps {seancorfield/depstar {:mvn/version ...}} :exec-fn hf.depstar/uberjar :exec-args {}} ``` Then run: ``` clojure -X:uberjar :aot true :jar MyProject.jar :main-class project.core ``` If any of the destination JAR file, main class, and/or AOT setting are fixed, they could be added to `:exec-args` in `deps.edn`: ```clojure :uberjar {:replace-deps {seancorfield/depstar {:mvn/version ...}} :exec-fn hf.depstar/uberjar :exec-args {:aot true :jar MyProject.jar :main-class project.core}} ``` `:jar` can be specified as a symbol or a string.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close