New releases of tools.deps.alpha and the clojure tools (clj) are now
available. This release primarily enhances alias support. There are 3 new
kinds of aliases that can be supplied with clj:
-O - for java option aliases. Example in deps.edn: {:aliases {:mem
{:jvm-opts ["-Xms100m" "-Xmx500m"]}}}. If multiple :jvm-opts are specfiied
with aliases, they concatenate. If command-line JVM options are specified
with -J (an already existing feature), those are supplied last.
-M - for clojure.main option aliases. Example in deps.edn: {:aliases
{:myapp {:main-opts ["com.foo.myapp" "--start-server"]}}}. If multiple
:main-opts are specified with aliases, only the last one is used (they
replace, not combine). If command-line main options are specified, they are
added to the end of the last :main-opts specified.
-A - for any kind of alias. This can be used instead of -R,-C,-O, or -M and
you may combine multiple kinds of alias keys in a single alias. For example
a deps.edn like this:
{:aliases
{:cljs {:extra-deps {org.clojure/clojurescript {:mvn/version "1.9.946"}}
:main-opts ["-m" "cljs.repl.node"]}}}
Can then invoked with just "clj -A:cljs" to start a cljs repl.
One important caveat on -O and -M options... Supplying arguments that
contain spaces and would require quoting on the command line do not yet
work. You are most likely to encounter these if you try to use -e (for a
Clojure expression) in a :main-opts or start a socket repl (which takes an
edn string) in a :jvm-opts.
Some other minor bugs were fixed as well.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.