Upgrade build to Java 25 (non-Kotlin)

MSAL

Upgrades build files to Java 25 for modules without Kotlin source files. This covers pure Java projects, including those that only pick up kotlin-stdlib transitively through another dependency. Kotlin DSL scripts without JavaProject, GradleProject, and JavaVersion markers are left unchanged because their Kotlin compiler compatibility cannot be established from the model.

org.openrewrite.java.migrate.UpgradeBuildToJava25
mod run . --recipe=org.openrewrite.java.migrate.UpgradeBuildToJava25

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. Upgrade Java version 25
  2. Add a Java 25 toolchain for Nebula Netflix OSS