[Repo] Don't use kotlinOptions in repo build scripts
^KT-63419 In Progress
This commit is contained in:
committed by
Space Team
parent
22e1e79c41
commit
6b19b8b9d0
@@ -1,3 +1,5 @@
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
|
||||
|
||||
val projectsAllowedToUseFirFromSymbol = listOf(
|
||||
"analysis-tests",
|
||||
"dump",
|
||||
@@ -19,11 +21,13 @@ val projectsAllowedToUseFirFromSymbol = listOf(
|
||||
|
||||
subprojects {
|
||||
if (name in projectsAllowedToUseFirFromSymbol) {
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>>().configureEach {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += "-opt-in=org.jetbrains.kotlin.fir.symbols.SymbolInternals"
|
||||
freeCompilerArgs += "-opt-in=org.jetbrains.kotlin.types.model.K2Only"
|
||||
}
|
||||
tasks.withType<KotlinJvmCompile>().configureEach {
|
||||
compilerOptions.optIn.addAll(
|
||||
listOf(
|
||||
"org.jetbrains.kotlin.fir.symbols.SymbolInternals",
|
||||
"org.jetbrains.kotlin.types.model.K2Only",
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
|
||||
import org.jetbrains.kotlin.ideaExt.idea
|
||||
|
||||
plugins {
|
||||
@@ -54,10 +55,8 @@ sourceSets {
|
||||
"test" {}
|
||||
}
|
||||
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += "-Xinline-classes"
|
||||
}
|
||||
tasks.withType<KotlinJvmCompile> {
|
||||
compilerOptions.freeCompilerArgs.add("-Xinline-classes")
|
||||
}
|
||||
|
||||
if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
|
||||
|
||||
Reference in New Issue
Block a user