(env-prop setting)
Given a setting name, get its Boolean value from the environment, validate it, and return the value (or nil if no setting is present).
Given a setting name, get its Boolean value from the environment, validate it, and return the value (or nil if no setting is present).
(parse-args args)
Returns a hash map with all the options set from command-line args.
This is to avoid an external dependency on clojure.tools.cli
.
Returns a hash map with all the options set from command-line args. This is to avoid an external dependency on `clojure.tools.cli`.
(run {:keys [aot classpath debug-clash exclude help jar jar-type main-class
no-pom verbose]
:or {jar-type :uber}
:as options})
Legacy entry point for uberjar invocations.
Can be used with clojure -X
:
In :aliases
:
:depstar {:extra-deps {seancorfield/depstar {:mvn/version ...}}}
:uberjar {:fn hf.depstar.uberjar/run
:args {:aot true}}
Then run:
clojure -R:depstar -X:uberjar :jar MyProject.jar :main-class project.core
If the destination JAR file and main class are fixed, they could be
added to :args
in deps.edn
:
:depstar {:extra-deps {seancorfield/depstar {:mvn/version ...}}}
:uberjar {:fn hf.depstar.uberjar/run
:args {:aot true :jar MyProject.jar :main-class project.core}}
Both :jar
and :main-class
can be specified as symbols or strings.
Legacy entry point for uberjar invocations. Can be used with `clojure -X`: In `:aliases`: ```clojure :depstar {:extra-deps {seancorfield/depstar {:mvn/version ...}}} :uberjar {:fn hf.depstar.uberjar/run :args {:aot true}} ``` Then run: ``` clojure -R:depstar -X:uberjar :jar MyProject.jar :main-class project.core ``` If the destination JAR file and main class are fixed, they could be added to `:args` in `deps.edn`: ```clojure :depstar {:extra-deps {seancorfield/depstar {:mvn/version ...}}} :uberjar {:fn hf.depstar.uberjar/run :args {:aot true :jar MyProject.jar :main-class project.core}} ``` Both `:jar` and `:main-class` can be specified as symbols or strings.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close