Use Maven compiler plugin release configuration

MSAL

Replaces any explicit source or target configuration (if present) on the maven-compiler-plugin with release, and updates the release value if needed. Will not downgrade the Java version if the current version is higher.

org.openrewrite.java.migrate.maven.UseMavenCompilerPluginReleaseConfiguration

Required

The new value for the release configuration. This recipe prefers ${java.version} if defined.

mod run . --recipe=org.openrewrite.java.migrate.maven.UseMavenCompilerPluginReleaseConfiguration \ -P releaseVersion=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. Use Maven compiler plugin release configuration