Replace kotlinOptions with compilerOptions in Gradle build files
ProprietaryMigrate the deprecated kotlinOptions DSL block to compilerOptions in Gradle build files (Groovy and Kotlin DSL). Renames the block and, in the Kotlin DSL, modernizes the assignments inside it to the Provider-style setters (jvmTarget.set(JvmTarget.JVM_X), freeCompilerArgs.addAll(...)) so the result compiles against the compilerOptions DSL. The kotlinOptions DSL was deprecated in Kotlin 2.0 and removed in Kotlin 2.2.
org. openrewrite. kotlin. migrate. ReplaceKotlinOptionsWithCompilerOptionsmod run . --recipe= org. openrewrite. kotlin. migrate. ReplaceKotlinOptionsWithCompilerOptionsInstall 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.