|
|
@ -5,7 +5,10 @@ plugins { |
|
|
|
id("org.jetbrains.compose") |
|
|
|
id("org.jetbrains.compose") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val integrationTestsEnabled: Boolean = project.properties.getValue("integrationTestsEnabled") == "true" |
|
|
|
|
|
|
|
|
|
|
|
kotlin { |
|
|
|
kotlin { |
|
|
|
|
|
|
|
if (integrationTestsEnabled) { |
|
|
|
jvm { |
|
|
|
jvm { |
|
|
|
tasks.named<Test>("jvmTest") { |
|
|
|
tasks.named<Test>("jvmTest") { |
|
|
|
useJUnitPlatform() |
|
|
|
useJUnitPlatform() |
|
|
@ -16,6 +19,7 @@ kotlin { |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
js(IR) { |
|
|
|
js(IR) { |
|
|
|
browser() { |
|
|
|
browser() { |
|
|
@ -42,7 +46,6 @@ kotlin { |
|
|
|
dependencies { |
|
|
|
dependencies { |
|
|
|
implementation(kotlin("stdlib-js")) |
|
|
|
implementation(kotlin("stdlib-js")) |
|
|
|
implementation(npm("highlight.js", "10.7.2")) |
|
|
|
implementation(npm("highlight.js", "10.7.2")) |
|
|
|
implementation(project(":internal-html-core-runtime")) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -52,6 +55,7 @@ kotlin { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (integrationTestsEnabled) { |
|
|
|
val jvmTest by getting { |
|
|
|
val jvmTest by getting { |
|
|
|
dependencies { |
|
|
|
dependencies { |
|
|
|
implementation("org.slf4j:slf4j-api:1.7.30") |
|
|
|
implementation("org.slf4j:slf4j-api:1.7.30") |
|
|
@ -69,9 +73,11 @@ kotlin { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
tasks.named<Test>("jvmTest") { |
|
|
|
if (integrationTestsEnabled) { |
|
|
|
|
|
|
|
tasks.named<Test>("jvmTest") { |
|
|
|
dependsOn(tasks.named("jsBrowserDevelopmentWebpack")) |
|
|
|
dependsOn(tasks.named("jsBrowserDevelopmentWebpack")) |
|
|
|
|
|
|
|
|
|
|
|
listOf( |
|
|
|
listOf( |
|
|
@ -91,6 +97,7 @@ tasks.named<Test>("jvmTest") { |
|
|
|
systemProperty(propName, "true") |
|
|
|
systemProperty(propName, "true") |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273 |
|
|
|
// a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273 |
|
|
|