I'd like to use Compose/Multiplatform (with desktop and android targets) with Kotlin 1.8.21 but the ...
n
I'd like to use Compose/Multiplatform (with desktop and android targets) with Kotlin 1.8.21 but the following configuration does not seem to work:
Copy code
tasks.withType<KotlinCompile> {
    kotlinOptions {
         ...
         freeCompilerArgs +=
            listOf(
                "-P", "plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true"
            )
    }
}
What am I doing wrong? Thanks.
m
I just added this to all my build.gradle.kts scripts:
Copy code
compose {
    kotlinCompilerPlugin.set(dependencies.compiler.forKotlin("1.8.20"))
    kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.8.21")
}