Fork me on GitHub
#tools-deps
<
2020-11-09
>
Eamonn Sullivan09:11:08

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

practicalli-johnny12:11:30

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

Alex Miller (Clojure team)12:11:59

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

Alex Miller (Clojure team)15:11:58

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

borkdude09:11:42

@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.

borkdude10:11:18

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 Sullivan11:11:10

Thanks, @borkdude, I will take a look.