Tag: java

Different java version for each project

Different java version for each project

Since September 2017 Oracle started releasing new Java language version every 6 months. Of course many versions are non-LTS and I used them only to check out new language features. Last year Java 17 was released (LTS release) and it’s getting more and more adoption.

At my work I usually work with many projects each opened in separate IntelliJ IDEA window. It’s pretty common when you work with microservices. Because each service is maintained by different team it is not unusual that one service is using Java 11 and other requires Java 17.

To install and manage many versions of JDK I prefer to use SDKMAN! (sdkman.io). It manages not only Java SDK but also other language SDKs like Scala, Kotlin. No need to look for new tool or learn how to use them.

Continue reading “Different java version for each project”