[Gradle, JS] Not add dom-api-compat if stdlib default dependency is disabled
This commit is contained in:
committed by
Space Team
parent
a391db3127
commit
9073a7b6b0
+5
-5
@@ -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 {
|
||||||
|
|||||||
+1
-1
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user