mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-19 07:33:56 +00:00
chore: kotlinOptions is deprecated
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
@@ -26,8 +26,9 @@ tasks.register('clean', Delete) {
|
||||
delete getLayout().getBuildDirectory()
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompile).configureEach {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
|
||||
|
||||
tasks.withType(KotlinJvmCompile).configureEach {
|
||||
compilerOptions {
|
||||
freeCompilerArgs.add("-opt-in=kotlin.RequiresOptIn")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user