Comment Kotlin modules capped at Java 24

MSAL

Adds an explanatory comment to Kotlin modules that remain at Java 24 after the Java 25 migration, because Kotlin before 2.3 cannot target Java 25 bytecode. This covers both a Kotlin 1.x cap (which cannot be upgraded automatically) and a Kotlin 2.0-2.2 module whose upgrade to 2.3 could not be applied. Scoped to modules that actually compile Kotlin (i.e. contain .kt source files); the comment is self-healing, so a module that does reach Java 25 has it removed.

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

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. Explain why the Java version was capped at 24 for Kotlin modules