[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()
|
||||
}
|
||||
|
||||
buildAndFail("assemble") {
|
||||
assertTasksFailed(":compileKotlinJs")
|
||||
build("assemble") {
|
||||
assertTasksExecuted(":compileKotlinJs")
|
||||
}
|
||||
|
||||
buildGradleKts.modify {
|
||||
@@ -103,8 +103,8 @@ class KotlinJsDomApiDependencyIT : KGPBaseTest() {
|
||||
""".trimIndent().also { added = it }
|
||||
}
|
||||
|
||||
buildAndFail("assemble") {
|
||||
assertTasksFailed(":compileKotlinJs")
|
||||
build("assemble") {
|
||||
assertTasksUpToDate(":compileKotlinJs")
|
||||
}
|
||||
|
||||
buildGradleKts.modify {
|
||||
@@ -118,7 +118,7 @@ class KotlinJsDomApiDependencyIT : KGPBaseTest() {
|
||||
}
|
||||
|
||||
build("assemble") {
|
||||
assertTasksExecuted(":compileKotlinJs")
|
||||
assertTasksUpToDate(":compileKotlinJs")
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user