Skip to content

Commit 10a5950

Browse files
committed
Override coroutines version to avoid linkage problem for wasmJs
1 parent ad69eed commit 10a5950

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ nexus-publish = { id = "io.github.gradle-nexus.publish-plugin", version = "2.0.0
2626
kotlin-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "serialization" }
2727
kotlin-serialization-json-okio = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json-okio", version.ref = "serialization" }
2828
kotlin-benchmark = { group = "org.jetbrains.kotlinx", name = "kotlinx-benchmark-runtime", version.ref = "benchmark" }
29+
kotlin-coroutines-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version = "1.10.1" }
2930
kotest-assertions-core = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" }
3031
kotest-framework-engine = { module = "io.kotest:kotest-framework-engine", version.ref = "kotest" }
3132
kotest-runner-junit5 = { module = "io.kotest:kotest-runner-junit5", version.ref = "kotest" }

json-schema-validator/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ kotlin {
105105
commonTest {
106106
dependencies {
107107
implementation(libs.kotest.assertions.core)
108+
implementation(libs.kotlin.coroutines.core.get().toString()) {
109+
// see "https://kotlinlang.slack.com/archives/CDFP59223/p1736191408326039?thread_ts=1734964013.996149&cid=CDFP59223"
110+
because(
111+
"there is a problem with linkage related to changes in kotlin 2.1.0: " +
112+
"wasmJs tests in browser does not work without updating coroutines to the version compiled with 2.1.0",
113+
)
114+
}
108115
implementation(libs.kotest.framework.engine)
109116
implementation(kotlin("test-common"))
110117
implementation(kotlin("test-annotations-common"))

test-suites/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ kotlin {
6060
implementation(kotlin("test-annotations-common"))
6161
implementation(libs.okio.common)
6262
implementation(libs.kotlin.serialization.json.okio)
63+
64+
implementation(libs.kotlin.coroutines.core.get().toString()) {
65+
// see "https://kotlinlang.slack.com/archives/CDFP59223/p1736191408326039?thread_ts=1734964013.996149&cid=CDFP59223"
66+
because(
67+
"there is a problem with linkage related to changes in kotlin 2.1.0: " +
68+
"wasmJs tests in browser does not work without updating coroutines to the version compiled with 2.1.0",
69+
)
70+
}
6371
}
6472
}
6573
jsTest {

0 commit comments

Comments
 (0)