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> {
|
||||
kotlinOptions {
|
||||
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 {
|
||||
languageSettings.applySettings(kotlinVersion)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user