Check Kotlin compiler prerequisites for Java 25

MSAL

Preserve Gradle builds compiling Kotlin with an unsupported or unresolved compiler, and report a manual prerequisite. Java-only Kotlin DSL builds are not excluded. Independent nested build boundaries are retained.

org.openrewrite.java.migrate.search.CheckKotlinGradleJava25Compatibility

Required

A compiler version verified to compile Kotlin while Gradle runs on Java 25.

Optional

markCompatibleBoolean

Mark eligible files when used as a precondition. Otherwise only report manual prerequisites without changing sources.

upgradeEditableCompilerBoolean

Upgrade only owned Kotlin JVM 2.x compiler literals inside compatible shared builds.

markAlignmentCandidatesBoolean

Select modeled Kotlin modules and markerless root builds with conventional root Kotlin sources and a known compatible or safely upgradable owned JVM compiler.

mod run . --recipe=org.openrewrite.java.migrate.search.CheckKotlinGradleJava25Compatibility \ -P minimumCompilerVersion=2.3.0

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.