Best JDK version for new Clojure environment

I use for this purpose https://direnv.net (per-dir PATH and other variables) and the OSX java_home - v 1.8|11 executable. I’m looking forward to trying https://nixos.wiki/wiki/Development_environment_with_nix-shell (with direnv). Better than per language solutions