how would i add the compiler arguments (MPP) using...
# gradle
t
how would i add the compiler arguments (MPP) using the kotlin gradle dsl?
-Xuse-experimental=kotlin.contracts.ExperimentalContracts
m
Something in the likes of
Copy code
tasks.withType<KotlinCompile> {
    kotlinOptions {
        freeCompilerArgs = listOf("-Xuse-experimental=kotlin.contracts.ExperimentalContracts")
    }
}
?
t
oh yes sorry, i was just writing im not talking about the freecompilerargs. under
kotlinOptions
there is an extension
experimental
but iot looks like one can only enable cporoutines there