Upgrade Java version

MSAL

Upgrade 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.UpgradeJavaVersion

Required

The Java version to upgrade to.

mod run . --recipe=org.openrewrite.java.migrate.UpgradeJavaVersion \ -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. Use Maven compiler plugin release configuration
  2. Update Maven Java project properties
  3. Upgrade Java version in alternate Maven builds
  4. Upgrade jenkins java version
  5. Align Gradle Java and Kotlin bytecode targets
  6. Upgrade Java release in Java-authored Gradle configuration
  7. Update SDKMAN! Java version
  8. Upgrade Java container images in CI and Kubernetes files
  9. Upgrade Java version in GitLab CI
  10. Upgrade Docker image Java version
  11. Upgrade Kotlin jvmTarget to match the Java version