Upgrade Java version

Apache 2.0

Upgrade build plugin configuration to use the specified Java version. This recipe changes java.toolchain.languageVersion in build.gradle(.kts) of gradle projects, or maven-compiler-plugin target version and related settings. Will not downgrade if the version is newer than the specified version.

io.quarkus.updates.core.quarkus37.UpgradeJavaVersion

Required

The Java version to upgrade to.

mod run . --recipe=io.quarkus.updates.core.quarkus37.UpgradeJavaVersion \ -P version=17

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. Update Gradle project Java compatibility