This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-27
Channels
- # announcements (8)
- # babashka (2)
- # calva (21)
- # clojure (30)
- # clojure-europe (4)
- # conjure (1)
- # core-logic (5)
- # data-science (1)
- # emacs (10)
- # hyperfiddle (1)
- # introduce-yourself (1)
- # luminus (62)
- # meander (23)
- # nbb (26)
- # off-topic (9)
- # reitit (2)
- # spacemacs (2)
- # squint (65)
- # tools-build (4)
- # tools-deps (17)
- # xtdb (20)
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 🙂
Can you post this on http://ask.clojure.org and I'll make a ticket for it?
Sure thing! Thanks a lot! 😄