Migrate to Java 17

Apache 2.0

This recipe will apply changes commonly needed when migrating to Java 17. Specifically, for those applications that are built on Java 8, this recipe will update and add dependencies on J2EE libraries that are no longer directly bundled with the JDK. This recipe will also replace deprecated API with equivalents when there is a clear migration strategy. Build files will also be updated to use Java 17 as the target/source and plugins will be also be upgraded to versions that are compatible with Java 17.

io.quarkus.updates.core.quarkus37.UpgradeToJava17
mod run . --recipe=io.quarkus.updates.core.quarkus37.UpgradeToJava17

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Upgrade actions/setup-java java-version 17
  2. Remove method invocations java.lang.Runtime traceInstructions(boolean)
  3. Remove method invocations java.lang.System traceMethodCalls(boolean)
  4. Upgrade Maven plugin version org.apache.maven.plugins:maven-checkstyle-plugin:3.x