Use Maven compiler plugin release configuration
MSALReplaces 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. UseMavenCompilerPluginReleaseConfigurationRequired
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=11Install 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.