kotlin-sdk/samples/kotlin-mcp-client/build.gradle.kts
Konstantin Pavlov 935a1eddbc
Add Ktor BOM for dependency management across all modules, run Kotlin-MCP-Server Sample (#367)
## Motivation and Context
- 📦 Unifies Ktor library versioning by introducing the Ktor BOM
dependency.
- ✅  Re-enable build of MCP Server Sample

## How Has This Been Tested?
Regression tests

## Breaking Changes
No

## Types of changes
<!-- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [x] Build configuration update

## Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply. -->
- [x] I have read the [MCP
Documentation](https://modelcontextprotocol.io)
- [x] My code follows the repository's style guidelines
- [x] New and existing tests pass locally
- [x] I have added appropriate error handling
- [x] I have added or updated documentation as needed

## Additional context
<!-- Add any other context, implementation notes, or design decisions
-->
2025-11-04 11:44:39 +02:00

28 lines
527 B
Kotlin

plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.shadow)
application
}
application {
mainClass.set("io.modelcontextprotocol.sample.client.MainKt")
}
group = "org.example"
version = "0.1.0"
dependencies {
implementation(dependencies.platform(libs.ktor.bom))
implementation(libs.mcp.kotlin.client)
implementation(libs.ktor.client.cio)
implementation(libs.anthropic.java)
implementation(libs.slf4j.simple)
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}