Upgrade Java version
MSALUpgrade build plugin configuration to use the specified Java version. This recipe changes java.toolchain.languageVersion in build.gradle(.kts) of Gradle projects, Java-authored Gradle compiler release configuration, maven-compiler-plugin target version and related settings, or Eclipse JDT project metadata. Will not downgrade if the version is newer than the specified version.
org. openrewrite. java. migrate. UpgradeJavaVersionRequired
The Java version to upgrade to.
mod run . --recipe= org. openrewrite. java. migrate. UpgradeJavaVersion \
-P version=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.
- Use Maven compiler plugin release configuration
- Update Maven Java project properties
- Upgrade Java version in alternate Maven builds
- Upgrade jenkins java version
- Align Gradle Java and Kotlin bytecode targets
- Upgrade Java release in Java-authored Gradle configuration
- Update SDKMAN! Java version
- Upgrade Java container images in CI and Kubernetes files
- Upgrade Java version in GitLab CI
- Upgrade Docker image Java version
- Upgrade Kotlin
jvmTargetto match the Java version