Skip to content

Commit 61ce2f8

Browse files
author
luigi
committed
fix
1 parent f66a76e commit 61ce2f8

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

tests/codegen/service-codegen-tests/build.gradle.kts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,12 @@ tasks.test {
3434
}
3535
}
3636

37-
val optInAnnotations = listOf(
38-
"kotlinx.serialization.ExperimentalSerializationApi",
39-
"kotlin.io.path.ExperimentalPathApi",
40-
)
41-
4237
kotlin {
43-
explicitApi()
44-
sourceSets.all {
45-
optInAnnotations.forEach { languageSettings.optIn(it) }
38+
compilerOptions {
39+
freeCompilerArgs.addAll(
40+
"-opt-in=kotlin.io.path.ExperimentalPathApi",
41+
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi"
42+
)
4643
}
4744
}
4845

0 commit comments

Comments
 (0)