Skip to content

Commit b2839d6

Browse files
committed
stuff
1 parent c2ef97b commit b2839d6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

buildSrc/src/main/kotlin/com/github/lamba92/dragalialost/build/DragaliaPlugin.kt

+8-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import org.gradle.kotlin.dsl.apply
1414
import org.gradle.kotlin.dsl.withType
1515
import org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginWrapper
1616

17-
@Suppress("unused")
17+
@Suppress("unused", "SuspiciousCollectionReassignment")
1818
class DragaliaPlugin : Plugin<Project> {
1919

2020
override fun apply(target: Project): Unit = with(target) {
@@ -33,12 +33,18 @@ class DragaliaPlugin : Plugin<Project> {
3333

3434
jvm {
3535
compilations.all {
36-
kotlinOptions.jvmTarget = "1.8"
36+
kotlinOptions {
37+
jvmTarget = "1.8"
38+
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
39+
}
3740
}
3841
}
3942

4043
js {
4144
nodejs()
45+
compilations.all {
46+
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
47+
}
4248
}
4349

4450
}

0 commit comments

Comments
 (0)