- Rename `connect` to `createSession` in `Server.kt `to make naming more clear - Add block to configure build to `Server.kt` - Move sse test to jvm to be able to run, small test refactoring - Introduce base integration test for sse server / client
32 lines
899 B
Kotlin
32 lines
899 B
Kotlin
plugins {
|
|
id("mcp.multiplatform")
|
|
}
|
|
|
|
kotlin {
|
|
jvm {
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|
|
}
|
|
sourceSets {
|
|
commonTest {
|
|
dependencies {
|
|
implementation(project(":kotlin-sdk"))
|
|
implementation(kotlin("test"))
|
|
implementation(libs.kotest.assertions.json)
|
|
implementation(libs.kotlin.logging)
|
|
implementation(libs.kotlinx.coroutines.test)
|
|
implementation(libs.ktor.client.cio)
|
|
implementation(libs.ktor.server.cio)
|
|
implementation(libs.ktor.server.websockets)
|
|
implementation(libs.ktor.server.test.host)
|
|
}
|
|
}
|
|
jvmTest {
|
|
dependencies {
|
|
implementation(libs.awaitility)
|
|
runtimeOnly(libs.slf4j.simple)
|
|
}
|
|
}
|
|
}
|
|
}
|