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?
@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.
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.
Thanks, @borkdude, I will take a look.
Sorry, after finding your original question, my previous answer doesnt make sense...
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
Done. Thanks very much. https://ask.clojure.org/index.php/9768/how-can-pass-java-opts-during-dependency-resolution-deps-edn
thx
there are some other cases where passing java opts to dep resolution would be useful