Use Maven compiler plugin release configuration
Apache 2.0Replaces any explicit source or target configuration (if present) on the maven-compiler-plugin with release, and updates the release value if needed. When testSource or testTarget differ from the main version, introduces testRelease. Will not downgrade the Java version if the current version is higher. Also removes stale maven.compiler.source, maven.compiler.target, maven.compiler.testSource, and maven.compiler.testTarget properties that are no longer referenced.
org. openrewrite. maven. UseMavenCompilerPluginReleaseConfigurationRequired
The new value for the release configuration. This recipe prefers ${java.version} if defined.
mod run . --recipe= org. openrewrite. 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.