tools-build

lispyclouds 2022-08-27T18:36:26.101119Z

Finally took the plunge to move one of my projects to jdk 19 and the Looming goodness and was pointing clojure to the jdk using the JAVA_CMD env var. Everything was fine til I hit the uber jar step in the CI, where it simply refused to recognise the jdk 19 fns. Took me a while and including reading the tools.build source to realise why it wasn't propagating the JAVA_CMD var and turns out I had to read env and send the :java_cmd in the b/compile-clj call. I can see why the behaviour is like this, but would :java_cmd defaulting to the value of JAVA_CMD something that could be considered? Feels a bit more intuitive for me, as mostly the invocations of tools.build fns would be from the shell 🙂

Alex Miller (Clojure team) 2022-08-27T20:47:36.960329Z

Can you post this on http://ask.clojure.org and I'll make a ticket for it?

lispyclouds 2022-08-27T20:48:08.286109Z

Sure thing! Thanks a lot! 😄