mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-26 05:11:02 +00:00
@@ -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(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
|
||||
|
||||
tasks.withType(KotlinJvmCompile).configureEach {
|
||||
compilerOptions {
|
||||
freeCompilerArgs.add("-opt-in=kotlin.RequiresOptIn")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user