(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 exclude help jar jar-type main-class no-pom
suppress-clash verbose]
:or {jar-type :uber}
:as options})Generic 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.
Generic 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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |