kotlin-sdk/docs/build.gradle.kts
Pavel Gorgulov 0b39f57cff
docs: streamable server sample (#595)
- add a simple streamable http server example with auth
- update readme: replace quickstart example from sse server to
streamable server
- add readme files for samples, simple-streamable-server, notebooks

closes #170 

## How Has This Been Tested?
knit and inspector

## Breaking Changes
NaN

## Types of changes
- [ ] 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)
- [x] Documentation update

## Checklist
- [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
- [ ] I have added appropriate error handling
- [x] I have added or updated documentation as needed
2026-03-10 12:45:21 +01:00

37 lines
858 B
Kotlin

plugins {
kotlin("jvm")
alias(libs.plugins.knit)
}
dependencies {
implementation(project(":kotlin-sdk"))
implementation(libs.ktor.server.cio)
implementation(libs.ktor.serialization)
implementation(libs.ktor.server.content.negotiation)
}
tasks.matching {
it.name == "ktlintMainSourceSetCheck" || it.name == "ktlintMainSourceSetFormat"
}.configureEach {
enabled = false
}
knit {
rootDir = project.rootDir
files = files(project.rootDir.resolve("README.md"))
defaultLineSeparator = "\n"
siteRoot = "" // Disable site root validation
}
// Only run knitCheck when explicitly requested, not as part of build/check
tasks.named("knitCheck") {
onlyIf {
gradle.startParameter.taskNames.any {
it.contains("knitCheck") || it.contains("knit")
}
}
}
tasks.clean {
delete("src")
}