[K2 JS] Do not load transitive dependencies for building K2/JS klibs
^KT-57262 Fixed
This commit is contained in:
committed by
Space Team
parent
62fb3df7f0
commit
e3402fcc87
+27
-2
@@ -385,9 +385,9 @@ class Kotlin2JsIrGradlePluginIT : AbstractKotlin2JsGradlePluginIT(true) {
|
||||
}
|
||||
}
|
||||
|
||||
@DisplayName("JS IR implementation dependency")
|
||||
@DisplayName("K1/JS IR implementation dependency")
|
||||
@GradleTest
|
||||
fun testJsIrImplementationDependency(gradleVersion: GradleVersion) {
|
||||
fun testK1JsIrImplementationDependency(gradleVersion: GradleVersion) {
|
||||
project("kotlin-js-browser-project", gradleVersion) {
|
||||
buildGradleKts.modify(::transformBuildScriptWithPluginsDsl)
|
||||
|
||||
@@ -401,6 +401,31 @@ class Kotlin2JsIrGradlePluginIT : AbstractKotlin2JsGradlePluginIT(true) {
|
||||
}
|
||||
}
|
||||
|
||||
@DisplayName("K2/JS IR implementation dependency")
|
||||
@GradleTest
|
||||
fun testK2JsIrImplementationDependency(gradleVersion: GradleVersion) {
|
||||
project("kotlin-js-browser-project", gradleVersion) {
|
||||
buildGradleKts.modify(::transformBuildScriptWithPluginsDsl)
|
||||
buildGradleKts.append(
|
||||
"""
|
||||
rootProject.subprojects.forEach {
|
||||
it.tasks.withType<org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile> {
|
||||
kotlinOptions.languageVersion = "2.0"
|
||||
}
|
||||
}
|
||||
""".trimIndent()
|
||||
)
|
||||
|
||||
build(":app:compileProductionExecutableKotlinJs")
|
||||
|
||||
projectPath.resolve("app/src/main/kotlin/App.kt").modify {
|
||||
it.replace("sheldon()", "best()")
|
||||
}
|
||||
|
||||
buildAndFail(":app:compileProductionExecutableKotlinJs")
|
||||
}
|
||||
}
|
||||
|
||||
@DisplayName("JS IR compiled against automatically added dom-api-compat")
|
||||
@GradleTest
|
||||
fun testJsIrCompiledAgainstAutomaticallyAddedDomApiCompat(gradleVersion: GradleVersion) {
|
||||
|
||||
Reference in New Issue
Block a user