Upgrade build to Java 24 for Kotlin 1.x
MSALKotlin versions before 2.3 only support up to Java 24, and Kotlin 1.x cannot be safely upgraded automatically because crossing the K2 compiler default introduced in Kotlin 2.0 is a source-breaking change. Such modules are therefore capped at Java 24. Modules already on Kotlin 2.0-2.2 are not capped, as they can be upgraded to Kotlin 2.3 and reach Java 25 instead. Applies only to modules that actually compile Kotlin (i.e. contain .kt source files), so transitive kotlin-stdlib dependencies do not trigger the cap.
org. openrewrite. java. migrate. UpgradeBuildToJava24ForKotlin1xmod run . --recipe= org. openrewrite. java. migrate. UpgradeBuildToJava24ForKotlin1xInstall 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.