Skip to content

Commit dd570bc

Browse files
committed
Opt in to ExperimentalCompilerApi
JetBrains/kotlin@1a84967
1 parent 3575aa4 commit dd570bc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

core/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@ compileKotlin {
4343
// https://github.com/tschuchortdev/kotlin-compile-testing/pull/63
4444
kotlinOptions.freeCompilerArgs += ["-Xno-optimized-callable-references"]
4545
kotlinOptions.freeCompilerArgs += ["-Xskip-runtime-version-check"]
46+
kotlinOptions.freeCompilerArgs += ["-opt-in=org.jetbrains.kotlin.compiler.plugin.ExperimentalCompilerApi"]
4647
}
4748

4849
compileTestKotlin {
4950
// https://github.com/tschuchortdev/kotlin-compile-testing/pull/63
5051
kotlinOptions.freeCompilerArgs += ["-Xno-optimized-callable-references"]
5152
kotlinOptions.freeCompilerArgs += ["-Xskip-runtime-version-check"]
53+
kotlinOptions.freeCompilerArgs += ["-opt-in=org.jetbrains.kotlin.compiler.plugin.ExperimentalCompilerApi"]
5254
}

ksp/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ dependencies {
77
api "com.google.devtools.ksp:symbol-processing-api:$ksp_version"
88
implementation "com.google.devtools.ksp:symbol-processing:$ksp_version"
99
}
10+
11+
compileKotlin {
12+
kotlinOptions.freeCompilerArgs += ["-opt-in=org.jetbrains.kotlin.compiler.plugin.ExperimentalCompilerApi"]
13+
}

0 commit comments

Comments
 (0)