Skip to content

Commit 2bbd9a8

Browse files
committed
Update coroutines version to avoid linkage error on wasmJs target
1 parent ba449f4 commit 2bbd9a8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ publication = { id = "com.vanniktech.maven.publish", version = "0.30.0" }
1515

1616
[libraries]
1717
kotlin-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "serialization" }
18+
kotlin-coroutines-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version = "1.10.1" }
1819
kotest-assertions-core = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" }
1920
kotest-framework-engine = { module = "io.kotest:kotest-framework-engine", version.ref = "kotest" }
2021
kotest-runner-junit5 = { module = "io.kotest:kotest-runner-junit5", version.ref = "kotest" }

library/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ kotlin {
5757
dependencies {
5858
implementation(kotlin("test-common"))
5959
implementation(kotlin("test-annotations-common"))
60+
61+
implementation(libs.kotlin.coroutines.core.get().toString()) {
62+
// see "https://kotlinlang.slack.com/archives/CDFP59223/p1736191408326039?thread_ts=1734964013.996149&cid=CDFP59223"
63+
because(
64+
"there is a problem with linkage related to changes in kotlin 2.1.0: " +
65+
"wasmJs tests in browser does not work without updating coroutines to the version compiled with 2.1.0",
66+
)
67+
}
6068
}
6169
}
6270
val nonWasmWasiTest by creating {

0 commit comments

Comments
 (0)