[Gradle, JS] Add test with cross modules with compose dependency
This commit is contained in:
+10
@@ -1691,4 +1691,14 @@ class Kotlin2JsIrGradlePluginIT : KGPBaseTest() {
|
||||
build("assemble")
|
||||
}
|
||||
}
|
||||
|
||||
@DisplayName("Cross modules work correctly with compose dependency ('KT60852')")
|
||||
@GradleTest
|
||||
fun crossModulesWorkCorrectlyWithComposeDependencyKT60852(gradleVersion: GradleVersion) {
|
||||
project("kotlin-js-compose-dependency", gradleVersion) {
|
||||
build("compileDevelopmentExecutableKotlinJs") {
|
||||
assertTasksExecuted(":compileDevelopmentExecutableKotlinJs")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
plugins {
|
||||
id("org.jetbrains.kotlin.multiplatform")
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
kotlin {
|
||||
js {
|
||||
useCommonJs()
|
||||
binaries.executable()
|
||||
nodejs {
|
||||
}
|
||||
}
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation("org.jetbrains.compose.runtime:runtime:1.4.3") // commenting this out and uncommenting in jsMain fixes the issue
|
||||
}
|
||||
}
|
||||
val jsMain by getting {
|
||||
dependencies {
|
||||
implementation("org.jetbrains.compose.html:html-core:1.4.3")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
kotlin.tests.individualTaskReports=true
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import org.jetbrains.compose.web.internal.runtime.ComposeWebInternalApi
|
||||
import org.jetbrains.compose.web.internal.runtime.DomApplier
|
||||
|
||||
@OptIn(ComposeWebInternalApi::class)
|
||||
fun main() {
|
||||
DomApplier::class.js
|
||||
}
|
||||
Reference in New Issue
Block a user