Update Maven Java project properties

MSAL

The Java version is determined by several project properties, including:

  • java.version
  • jdk.version
  • javaVersion
  • jdkVersion
  • maven.compiler.source
  • maven.compiler.target
  • maven.compiler.release
  • release.version

If none of these properties are in use and the maven compiler plugin is not otherwise configured, adds the maven.compiler.release property.

org.openrewrite.java.migrate.maven.UpdateMavenProjectPropertyJavaVersion

Required

The Java version to upgrade to.

mod run . --recipe=org.openrewrite.java.migrate.maven.UpdateMavenProjectPropertyJavaVersion \ -P version=11

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. Update Maven Java project properties