Enable context receivers for all compilations
This commit is contained in:
parent
1fe019da21
commit
b4058925ee
@ -44,7 +44,7 @@ public fun Project.configureKScience(
|
|||||||
tasks.withType<KotlinJvmCompile> {
|
tasks.withType<KotlinJvmCompile> {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = KScienceVersions.JVM_TARGET.toString()
|
jvmTarget = KScienceVersions.JVM_TARGET.toString()
|
||||||
freeCompilerArgs = freeCompilerArgs + defaultJvmArgs
|
freeCompilerArgs = freeCompilerArgs + defaultJvmArgs + "-Xcontext-receivers"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -141,6 +141,14 @@ public fun Project.configureKScience(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
targets.all {
|
||||||
|
compilations.all {
|
||||||
|
kotlinOptions {
|
||||||
|
freeCompilerArgs = freeCompilerArgs + "-Xcontext-receivers"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets.all {
|
sourceSets.all {
|
||||||
languageSettings.applySettings(kotlinVersion)
|
languageSettings.applySettings(kotlinVersion)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user