[Gradle, JS] Not add dom-api-compat if stdlib default dependency is disabled

This commit is contained in:
Ilya Goncharov
2023-02-13 12:37:21 +01:00
committed by Space Team
parent a391db3127
commit 9073a7b6b0
2 changed files with 6 additions and 6 deletions
@@ -90,8 +90,8 @@ class KotlinJsDomApiDependencyIT : KGPBaseTest() {
""".trimIndent() """.trimIndent()
} }
buildAndFail("assemble") { build("assemble") {
assertTasksFailed(":compileKotlinJs") assertTasksExecuted(":compileKotlinJs")
} }
buildGradleKts.modify { buildGradleKts.modify {
@@ -103,8 +103,8 @@ class KotlinJsDomApiDependencyIT : KGPBaseTest() {
""".trimIndent().also { added = it } """.trimIndent().also { added = it }
} }
buildAndFail("assemble") { build("assemble") {
assertTasksFailed(":compileKotlinJs") assertTasksUpToDate(":compileKotlinJs")
} }
buildGradleKts.modify { buildGradleKts.modify {
@@ -118,7 +118,7 @@ class KotlinJsDomApiDependencyIT : KGPBaseTest() {
} }
build("assemble") { build("assemble") {
assertTasksExecuted(":compileKotlinJs") assertTasksUpToDate(":compileKotlinJs")
} }
buildGradleKts.modify { buildGradleKts.modify {
@@ -43,7 +43,7 @@ internal fun customizeKotlinDependencies(project: Project) {
) )
} }
if (propertiesProvider.stdlibDefaultDependency && propertiesProvider.stdlibDomApiIncluded) { if (propertiesProvider.stdlibDomApiIncluded) {
project.configureKotlinDomApiDefaultDependency(topLevelExtension, coreLibrariesVersion) project.configureKotlinDomApiDefaultDependency(topLevelExtension, coreLibrariesVersion)
} }