tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
Eamonn Sullivan 2020-11-09T09:49:08.371Z

Just a reminder that I had a practical question ☝️ about how to use an artifactory with ssl client certs authorisation. Our internal artifactory requires -<http://Djavax.net|Djavax.net>.keyStore and -`http://Djavax.net.keyStorePassword` to be specified. How do I do that for the deps fetching? Is that possible, at the moment?

borkdude 2020-11-09T09:58:42.372400Z

@eamonn.sullivan Maybe not exactly what you are looking for, but if tools.deps doesn't have an answer right now: I've got a port of the clojure CLI script in Clojure itself. It supports setting a bunch of java properties for dep fetching through environment variables. Right now only proxy settings, but your variables may also be appropriate to support. Take a look at https://github.com/borkdude/deps.clj.

borkdude 2020-11-09T10:00:18.373300Z

You can run with the JVM, with babashka or as a graal binary. You can even run it as a clojure dep (since it's just normal clojure code) which is kind of meta.

Eamonn Sullivan 2020-11-09T11:15:10.373800Z

Thanks, @borkdude, I will take a look.

practicalli-john 2020-11-09T12:29:30.374300Z

Sorry, after finding your original question, my previous answer doesnt make sense...

alexmiller 2020-11-09T12:56:59.376Z

This is not possible right now with clj, but feel free to ask at https://ask.clojure.org and I will turn that into a ticket

Eamonn Sullivan 2020-11-09T15:18:56.376300Z

Done. Thanks very much. https://ask.clojure.org/index.php/9768/how-can-pass-java-opts-during-dependency-resolution-deps-edn

alexmiller 2020-11-09T15:31:42.376600Z

thx

alexmiller 2020-11-09T15:31:58.376800Z

there are some other cases where passing java opts to dep resolution would be useful