diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 320bce0d..f98b268f 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -38,10 +38,10 @@ kotlinx-collections-immutable = { group = "org.jetbrains.kotlinx", name = "kotli kotlin-logging = { group = "io.github.oshai", name = "kotlin-logging", version.ref = "logging" } # Ktor -ktor-client-cio = { group = "io.ktor", name = "ktor-client-cio", version.ref = "ktor" } +ktor-client-core = { group = "io.ktor", name = "ktor-client-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" } -ktor-server-cio = { group = "io.ktor", name = "ktor-server-cio", version.ref = "ktor" } +ktor-server-core = { group = "io.ktor", name = "ktor-server-core", version.ref = "ktor" } # Testing kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-test", version.ref = "coroutines" } @@ -51,6 +51,8 @@ slf4j-simple = { group = "org.slf4j", name = "slf4j-simple", version.ref = "slf4 kotest-assertions-json = { group = "io.kotest", name = "kotest-assertions-json", version.ref = "kotest" } # Samples +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" } mcp-kotlin = { group = "io.modelcontextprotocol", name = "kotlin-sdk", version.ref = "mcp-kotlin" } anthropic-java = { group = "com.anthropic", name = "anthropic-java", version.ref = "anthropic" } ktor-client-content-negotiation = { group = "io.ktor", name = "ktor-client-content-negotiation", version.ref = "ktor" } diff --git a/kotlin-sdk-client/build.gradle.kts b/kotlin-sdk-client/build.gradle.kts index aaf6050c..eece64ba 100644 --- a/kotlin-sdk-client/build.gradle.kts +++ b/kotlin-sdk-client/build.gradle.kts @@ -33,7 +33,7 @@ kotlin { commonMain { dependencies { api(project(":kotlin-sdk-core")) - api(libs.ktor.client.cio) + api(libs.ktor.client.core) implementation(libs.kotlin.logging) } } diff --git a/kotlin-sdk-server/build.gradle.kts b/kotlin-sdk-server/build.gradle.kts index 0148b784..43c72aef 100644 --- a/kotlin-sdk-server/build.gradle.kts +++ b/kotlin-sdk-server/build.gradle.kts @@ -11,7 +11,7 @@ kotlin { commonMain { dependencies { api(project(":kotlin-sdk-core")) - api(libs.ktor.server.cio) + api(libs.ktor.server.core) api(libs.ktor.server.sse) implementation(libs.kotlin.logging) } diff --git a/kotlin-sdk-test/build.gradle.kts b/kotlin-sdk-test/build.gradle.kts index ca7e35b3..f2e941f3 100644 --- a/kotlin-sdk-test/build.gradle.kts +++ b/kotlin-sdk-test/build.gradle.kts @@ -8,6 +8,8 @@ kotlin { dependencies { implementation(project(":kotlin-sdk")) implementation(kotlin("test")) + implementation(libs.ktor.client.cio) + implementation(libs.ktor.server.cio) implementation(libs.ktor.server.test.host) implementation(libs.kotlinx.coroutines.test) } diff --git a/samples/kotlin-mcp-server/build.gradle.kts b/samples/kotlin-mcp-server/build.gradle.kts index 5ecbc43c..6a649687 100644 --- a/samples/kotlin-mcp-server/build.gradle.kts +++ b/samples/kotlin-mcp-server/build.gradle.kts @@ -44,6 +44,7 @@ kotlin { sourceSets { commonMain.dependencies { implementation(libs.mcp.kotlin) + implementation(libs.ktor.server.cio) } jvmMain.dependencies { implementation(libs.slf4j.simple)