Use the languageVersion and apiVersion provider syntax in Kotlin compilerOptions
ProprietaryIn Gradle Kotlin DSL build scripts, replace the legacy languageVersion = "X" and apiVersion = "X" string assignments in compilerOptions (or kotlinOptions) with the Provider-style languageVersion.set(KotlinVersion.fromVersion("X")), adding the KotlinVersion import. The string-assignment form does not compile against the compilerOptions DSL, where both are a Property<KotlinVersion>.
org. openrewrite. kotlin. migrate. UseKotlinVersionProviderSyntaxmod run . --recipe= org. openrewrite. kotlin. migrate. UseKotlinVersionProviderSyntaxInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.