chore: kotlinOptions is deprecated
This commit is contained in:
parent
25046e4c11
commit
04c858e6fd
1 changed files with 5 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -26,8 +26,9 @@ tasks.register('clean', Delete) {
|
||||||
delete getLayout().getBuildDirectory()
|
delete getLayout().getBuildDirectory()
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(KotlinCompile).configureEach {
|
|
||||||
kotlinOptions {
|
tasks.withType(KotlinJvmCompile).configureEach {
|
||||||
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
|
compilerOptions {
|
||||||
|
freeCompilerArgs.add("-opt-in=kotlin.RequiresOptIn")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue