Hi, Is there a way to make sure I download needed dependencies for a givem library? Like: clojure -Sdeps '{:deps {seancorfield/depstar {:mvn/version "1.0.94"}}}'
but without opening a repl?
@sveri Add -e nil
to the end of that command.
It will perform all the downloads etc and then evaluate nil
(and not print it because it only prints non-`nil` values)
-Stree
and -Spath
will also circumvent a REPL and will show you the dependency tree or class path respectively, if you want some confirmation of the resources being accessed.
Thank you, exactly what I am looking for. I don't need the extra output for now.
@seancorfield I hope it's fine if I ask you directly here. I have been using depstar successfully so far and am experimenting with graalvm right now. It seems like native-image analyzes faster if direct linking is enabled. Is there a way to pass the -Dclojure.compiler.direct-linking=true` option while creating an uberjar with depstar?
Ah, I think I got it. deps.edn supports :jvm-opts ["-Dclojure.compiler.direct-linking=true"]
for aliases, if I read that right.
@sveri Or you can pass it on the command-line as -J-Dclojure.compiler.direct-linking=true
@seancorfield Does that -J-D...
work for clj calls too? In only saw it in reference to the native-image tool
Yes, -J
is a clojure
/`clj` option to pass JVM options.
Okay, great, thank you.