Found that you need to register the java-17 dist in jenv using command:
Copyjenv add /usr/local/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home
The path to /usr/local/opt/openjdk@17/libexec/openjdk.jdk you may take from your brew installation logs (found on the line sudo ln -sfn /usr/local/opt/openjdk@17/libexec/openjdk.jdk ...) and just add /Contents/Home
Now, it works
Copy> jenv local 17.0
> java -version
openjdk version "17.0.1" 2021-10-19
OpenJDK Runtime Environment Homebrew (build 17.0.1+1)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.1+1, mixed mode, sharing)
Answer from lazylead on Stack OverflowHOW DO YOU DOWNLOAD AND USE JAVA 17?
MacOS - jenv local, without a ".java-version" file ?
Modern Java Practices
Java 15 is the current LTS ("long-term support") version
No it is not. Java 15 is only updated/patched until next release, which means for 6 months. LTS is something a company chooses to support for a long period of time. Oracle supports Java 8, Java 11, Java 17 (next LTS). Same for Redhat. I think Azure support Java 14 as LTS as well.
In general, you will find that AdoptOpenJDK is a go-to choice for obtaining the JDK.
You should go to official OpenJDK site to get your JDK.
Lombok
Section on Lombok. I would add a big warning or note. If you're promoting newest Java versions, I guess you know, that records have landed and in Java 16 they will be a standard feature. Combine it with upcoming withers and you can write:
record Point(int x, int y) {}
Point p;
Point pp = p with { x = 3; }Lombok has a lot of problems, funnily enough, it broke IntelliJ recently and they had to do an emergency patching.
P.s. I can make a pull request for these suggested changes.
More on reddit.com