[K/JS] Remove the ability to run Legacy JS backend from the Gradle Plugin

This commit is contained in:
Artem Kobzar
2023-03-28 12:47:04 +00:00
committed by Space Team
parent ae32eff543
commit c6e4858bc9
53 changed files with 239 additions and 43 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ compileKotlin2Js {
"-Xallow-kotlin-package",
"-opt-in=kotlin.contracts.ExperimentalContracts",
"-opt-in=kotlin.RequiresOptIn",
"-Xforce-deprecated-legacy-compiler-usage"
]
kotlinOptions {
moduleKind = "umd"
@@ -29,10 +30,10 @@ compileKotlin2Js {
}
compileTestKotlin2Js {
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
kotlinOptions {
metaInfo = false
moduleKind = "umd"
freeCompilerArgs = ["-Xallow-kotlin-package", "-Xforce-deprecated-legacy-compiler-usage"]
}
}
+4 -1
View File
@@ -28,7 +28,10 @@ buildDir = "$projectDir/build"
["compileKotlin2Js", "compileTestKotlin2Js"].forEach {
tasks.named(it).configure {
kotlinOptions.moduleKind = "commonjs"
kotlinOptions {
moduleKind = "commonjs"
freeCompilerArgs += "-Xforce-deprecated-legacy-compiler-usage"
}
}
}