diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 540a848f..407212d5 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -22,7 +22,7 @@ hildan-github-changelog-plugin = "2.2.0" jackson = "2.18.2" kotlin = "2.1.0" kotlinx-atomicfu = "0.26.1" -kotlinx-coroutines = "1.9.0" +kotlinx-coroutines = "1.10.1" kotlinx-io = "0.6.0" kotlinx-serialization = "1.8.0" ktor = "2.3.12" @@ -51,6 +51,7 @@ jackson-core = { module = "com.fasterxml.jackson.core:jackson-core" } jackson-module-kotlin = { module = "com.fasterxml.jackson.module:jackson-module-kotlin" } java-websocket = { module = "org.java-websocket:Java-WebSocket", version.ref = "java-websocket" } jettyWebsocketCient = { module = "org.eclipse.jetty.websocket:websocket-jetty-client", version.ref = "jetty-websocket" } +kotlinx-atomicfu-runtime = { module = "org.jetbrains.kotlin:kotlinx-atomicfu-runtime", version.ref = "kotlin" } kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" } kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "kotlinx-coroutines" } kotlinx-io-core = { module = "org.jetbrains.kotlinx:kotlinx-io-core", version.ref = "kotlinx-io" } diff --git a/krossbow-websocket-ktor/build.gradle.kts b/krossbow-websocket-ktor/build.gradle.kts index 9a321139..9b8d4e49 100644 --- a/krossbow-websocket-ktor/build.gradle.kts +++ b/krossbow-websocket-ktor/build.gradle.kts @@ -33,6 +33,12 @@ kotlin { implementation(libs.ktor.client.cio) } } + val jsMain by getting { + dependencies { + // workaround for https://youtrack.jetbrains.com/issue/KT-57235 + implementation(libs.kotlinx.atomicfu.runtime) + } + } val jvmTest by getting { dependsOn(cioSupportTest) dependencies {