https://kotlinlang.org logo
Title
t

thana

11/14/2019, 11:34 AM
how would i add the compiler arguments (MPP) using the kotlin gradle dsl?
-Xuse-experimental=kotlin.contracts.ExperimentalContracts
m

mbonnin

11/14/2019, 11:37 AM
Something in the likes of
tasks.withType<KotlinCompile> {
    kotlinOptions {
        freeCompilerArgs = listOf("-Xuse-experimental=kotlin.contracts.ExperimentalContracts")
    }
}
?
t

thana

11/14/2019, 11:37 AM
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