Commit b2839d6 1 parent c2ef97b commit b2839d6 Copy full SHA for b2839d6
File tree 1 file changed +8
-2
lines changed
buildSrc/src/main/kotlin/com/github/lamba92/dragalialost/build
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import org.gradle.kotlin.dsl.apply
14
14
import org.gradle.kotlin.dsl.withType
15
15
import org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginWrapper
16
16
17
- @Suppress(" unused" )
17
+ @Suppress(" unused" , " SuspiciousCollectionReassignment " )
18
18
class DragaliaPlugin : Plugin <Project > {
19
19
20
20
override fun apply (target : Project ): Unit = with (target) {
@@ -33,12 +33,18 @@ class DragaliaPlugin : Plugin<Project> {
33
33
34
34
jvm {
35
35
compilations.all {
36
- kotlinOptions.jvmTarget = " 1.8"
36
+ kotlinOptions {
37
+ jvmTarget = " 1.8"
38
+ freeCompilerArgs + = " -Xopt-in=kotlin.RequiresOptIn"
39
+ }
37
40
}
38
41
}
39
42
40
43
js {
41
44
nodejs()
45
+ compilations.all {
46
+ kotlinOptions.freeCompilerArgs + = " -Xopt-in=kotlin.RequiresOptIn"
47
+ }
42
48
}
43
49
44
50
}
You can’t perform that action at this time.
0 commit comments