Skip to content

16. Java 11 Transition

Ilkka Seppälä edited this page Oct 9, 2019 · 60 revisions

Overview

When writing this, Java Design Patterns version 1.22.0-SNAPSHOT supports Java 8. Breaking it down it means that the source code uses up-to Java 8 features, the code is built using Maven Compiler Plugin with target version of 1.8 and the code is executed using Java 8 runtime.

After Java 9 was released in 2017-09 there was a drastic change in Java's release schedules. New version would be released every 6 months instead of the old 2 years. New releases would be either rapid releases (supported only for 6 months) or LTS (long-term-support) that would be supported for longer time. The latest release at the moment is Java 13 (rapid release) that was released just a few days ago. The latest LTS version is Java 11. Naturally after Java 8 we want to move to the next LTS version.

Background Material

https://blog.codefx.org/java/planning-your-java-9-update/

https://blog.codefx.org/java/java-9-migration-guide/

https://www.infoq.com/articles/upgrading-java-8-to-12/

https://winterbe.com/posts/2018/08/29/migrate-maven-projects-to-java-11-jigsaw/

Preparing for the Transition

Switch from JDK8 to JDK11

After the Transition