[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
@@ -229,6 +229,7 @@ kotlin {
|
||||
}
|
||||
compilations {
|
||||
all {
|
||||
@Suppress("DEPRECATION")
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += listOf(
|
||||
"-Xallow-kotlin-package",
|
||||
@@ -237,6 +238,7 @@ kotlin {
|
||||
}
|
||||
}
|
||||
val main by getting {
|
||||
@Suppress("DEPRECATION")
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += listOfNotNull(
|
||||
"-Xir-module-name=kotlin",
|
||||
@@ -260,12 +262,14 @@ kotlin {
|
||||
(this as KotlinTargetWithNodeJsDsl).nodejs()
|
||||
compilations {
|
||||
all {
|
||||
@Suppress("DEPRECATION")
|
||||
kotlinOptions.freeCompilerArgs += listOfNotNull(
|
||||
"-Xallow-kotlin-package",
|
||||
"-Xexpect-actual-classes",
|
||||
diagnosticNamesArg
|
||||
)
|
||||
}
|
||||
@Suppress("DEPRECATION")
|
||||
val main by getting {
|
||||
kotlinOptions.freeCompilerArgs += "-Xir-module-name=kotlin"
|
||||
kotlinOptions.allWarningsAsErrors = true
|
||||
@@ -295,6 +299,7 @@ kotlin {
|
||||
}
|
||||
nativeTarget.apply {
|
||||
compilations.all {
|
||||
@Suppress("DEPRECATION")
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += listOf(
|
||||
"-Xallow-kotlin-package",
|
||||
@@ -764,6 +769,7 @@ tasks {
|
||||
exclude("collections/MapTest.kt")
|
||||
}
|
||||
named("compileTestDevelopmentExecutableKotlinWasm$wasmTarget", KotlinJsIrLink::class) {
|
||||
@Suppress("DEPRECATION")
|
||||
kotlinOptions.freeCompilerArgs += listOf("-Xwasm-enable-array-range-checks")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,7 +147,8 @@ kotlin {
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<KotlinCompile<*>> {
|
||||
@Suppress("DEPRECATION")
|
||||
tasks.withType<KotlinCompile<*>>().configureEach {
|
||||
kotlinOptions.languageVersion = "1.9"
|
||||
kotlinOptions.apiVersion = "2.0"
|
||||
kotlinOptions.freeCompilerArgs += listOf(
|
||||
@@ -167,6 +168,7 @@ tasks {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
named("compileKotlinJs", KotlinCompile::class) {
|
||||
kotlinOptions.freeCompilerArgs += "-Xir-module-name=kotlin"
|
||||
}
|
||||
|
||||
@@ -54,6 +54,7 @@ tasks.compileKotlin {
|
||||
val commonSources = listOf(
|
||||
"kotlin/enums/EnumEntries.kt"
|
||||
).map { copySources.get().destinationDir.resolve(it) }
|
||||
@Suppress("DEPRECATION")
|
||||
kotlinOptions {
|
||||
languageVersion = "1.9"
|
||||
apiVersion = "2.0"
|
||||
@@ -69,6 +70,7 @@ tasks.compileKotlin {
|
||||
moduleName = "kotlin-stdlib"
|
||||
}
|
||||
doFirst {
|
||||
@Suppress("DEPRECATION")
|
||||
kotlinOptions.freeCompilerArgs += listOf(
|
||||
"-Xcommon-sources=${commonSources.joinToString(File.pathSeparator)}",
|
||||
)
|
||||
|
||||
@@ -10,10 +10,10 @@ sourceSets {
|
||||
}
|
||||
|
||||
compileTestKotlin {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs = [
|
||||
"-opt-in=kotlin.ExperimentalStdlibApi",
|
||||
"-opt-in=kotlin.ExperimentalUnsignedTypes",
|
||||
]
|
||||
compilerOptions {
|
||||
optIn.addAll([
|
||||
"kotlin.ExperimentalStdlibApi",
|
||||
"kotlin.ExperimentalUnsignedTypes",
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user