basher
02/24/2019, 1:40 AMrusshwolf
02/24/2019, 2:17 AMtargets.all {
compilations.test {
kotlinOptions {
// ...
}
}
}
Further documentation on configuring compilations at https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#configuring-compilationsbasher
02/25/2019, 4:51 PMcompilations.test
there didn't work for some reason, ended up getting it to work like this:
afterEvaluate {
kotlin {
targets.all {
compilations.configureEach {
if (name == "test") {
kotlinOptions {
freeCompilerArgs = listOf("-Xuse-experimental=kotlin.Experimental")
}
}
}
}
}
}
afterEvaluate {
kotlin {
targets.all {
compilations.test {
kotlinOptions {
freeCompilerArgs = ["-Xuse-experimental=kotlin.Experimental"]
}
}
}
}
}
afterEvaluate
, so that I can be sure that all compilations are presentCould not find method test() for arguments [build_6renavqykv9709il5jhhsfcc8$_run_closure5$_closure13$_closure14$_closure15@2f32fced] on KotlinCommonCompilation container of type org.gradle.api.internal.FactoryNamedDomainObjectContainer.