From 31fd6d93da6bff435850f2ea8acdbae61017628a Mon Sep 17 00:00:00 2001 From: "Ruslan Ibrahimau (Ibragimov)" <493656+IRus@users.noreply.github.com> Date: Wed, 12 Nov 2025 14:32:54 +0100 Subject: [PATCH] Kotlin-MCP can't be used without ktor-bom starting from 0.7.5 (#390) (#392) --- gradle/libs.versions.toml | 21 ++++++++++----------- kotlin-sdk-client/build.gradle.kts | 1 - kotlin-sdk-core/build.gradle.kts | 1 - kotlin-sdk-server/build.gradle.kts | 1 - kotlin-sdk-test/build.gradle.kts | 1 - kotlin-sdk/build.gradle.kts | 1 - 6 files changed, 10 insertions(+), 16 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 0283a64..dc8c4df 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -39,28 +39,27 @@ kotlinx-io-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-io-core", v kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "serialization" } # Ktor -ktor-bom = { group = "io.ktor", name = "ktor-bom", version.ref = "ktor" } -ktor-client-apache5 = { group = "io.ktor", name = "ktor-client-apache5" } -ktor-client-core = { group = "io.ktor", name = "ktor-client-core" } -ktor-client-logging = { group = "io.ktor", name = "ktor-client-logging" } -ktor-server-core = { group = "io.ktor", name = "ktor-server-core" } -ktor-server-sse = { group = "io.ktor", name = "ktor-server-sse" } -ktor-server-websockets = { group = "io.ktor", name = "ktor-server-websockets" } +ktor-client-apache5 = { group = "io.ktor", name = "ktor-client-apache5", version.ref = "ktor" } +ktor-client-core = { group = "io.ktor", name = "ktor-client-core", version.ref = "ktor" } +ktor-client-logging = { group = "io.ktor", name = "ktor-client-logging", version.ref = "ktor" } +ktor-server-core = { group = "io.ktor", name = "ktor-server-core", version.ref = "ktor" } +ktor-server-sse = { group = "io.ktor", name = "ktor-server-sse", version.ref = "ktor" } +ktor-server-websockets = { group = "io.ktor", name = "ktor-server-websockets", version.ref = "ktor" } # Testing awaitility = { group = "org.awaitility", name = "awaitility-kotlin", version.ref = "awaitility" } kotest-assertions-core = { group = "io.kotest", name = "kotest-assertions-core", version.ref = "kotest" } kotest-assertions-json = { group = "io.kotest", name = "kotest-assertions-json", version.ref = "kotest" } kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-test", version.ref = "coroutines" } -ktor-client-mock = { group = "io.ktor", name = "ktor-client-mock" } -ktor-server-test-host = { group = "io.ktor", name = "ktor-server-test-host" } +ktor-client-mock = { group = "io.ktor", name = "ktor-client-mock", version.ref = "ktor" } +ktor-server-test-host = { group = "io.ktor", name = "ktor-server-test-host", version.ref = "ktor" } mokksy = { group = "dev.mokksy", name = "mokksy", version.ref = "mokksy" } netty-bom = { group = "io.netty", name = "netty-bom", version.ref = "netty" } slf4j-simple = { group = "org.slf4j", name = "slf4j-simple", version.ref = "slf4j" } # Samples -ktor-client-cio = { group = "io.ktor", name = "ktor-client-cio" } -ktor-server-cio = { group = "io.ktor", name = "ktor-server-cio" } +ktor-client-cio = { group = "io.ktor", name = "ktor-client-cio", version.ref = "ktor" } +ktor-server-cio = { group = "io.ktor", name = "ktor-server-cio", version.ref = "ktor" } [plugins] kotlinx-binary-compatibility-validator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version.ref = "binaryCompatibilityValidatorPlugin" } diff --git a/kotlin-sdk-client/build.gradle.kts b/kotlin-sdk-client/build.gradle.kts index 838afce..473c32b 100644 --- a/kotlin-sdk-client/build.gradle.kts +++ b/kotlin-sdk-client/build.gradle.kts @@ -32,7 +32,6 @@ kotlin { sourceSets { commonMain { dependencies { - implementation(dependencies.platform(libs.ktor.bom)) api(project(":kotlin-sdk-core")) api(libs.ktor.client.core) implementation(libs.kotlin.logging) diff --git a/kotlin-sdk-core/build.gradle.kts b/kotlin-sdk-core/build.gradle.kts index 9e07904..4e2531b 100644 --- a/kotlin-sdk-core/build.gradle.kts +++ b/kotlin-sdk-core/build.gradle.kts @@ -110,7 +110,6 @@ kotlin { commonMain { kotlin.srcDir(generateLibVersion) dependencies { - implementation(dependencies.platform(libs.ktor.bom)) api(libs.kotlinx.serialization.json) api(libs.kotlinx.coroutines.core) api(libs.kotlinx.io.core) diff --git a/kotlin-sdk-server/build.gradle.kts b/kotlin-sdk-server/build.gradle.kts index f00fc40..64a2749 100644 --- a/kotlin-sdk-server/build.gradle.kts +++ b/kotlin-sdk-server/build.gradle.kts @@ -9,7 +9,6 @@ kotlin { sourceSets { commonMain { dependencies { - implementation(dependencies.platform(libs.ktor.bom)) api(project(":kotlin-sdk-core")) api(libs.ktor.server.core) api(libs.ktor.server.sse) diff --git a/kotlin-sdk-test/build.gradle.kts b/kotlin-sdk-test/build.gradle.kts index ec44904..252d0e2 100644 --- a/kotlin-sdk-test/build.gradle.kts +++ b/kotlin-sdk-test/build.gradle.kts @@ -11,7 +11,6 @@ kotlin { sourceSets { commonTest { dependencies { - implementation(dependencies.platform(libs.ktor.bom)) implementation(project(":kotlin-sdk")) implementation(kotlin("test")) implementation(libs.kotest.assertions.core) diff --git a/kotlin-sdk/build.gradle.kts b/kotlin-sdk/build.gradle.kts index c59ba69..e59df60 100644 --- a/kotlin-sdk/build.gradle.kts +++ b/kotlin-sdk/build.gradle.kts @@ -7,7 +7,6 @@ kotlin { sourceSets { commonMain { dependencies { - implementation(dependencies.platform(libs.ktor.bom)) api(project(":kotlin-sdk-core")) api(project(":kotlin-sdk-client")) api(project(":kotlin-sdk-server"))