## Motivation and Context Make sure, that code is properly tested ## How Has This Been Tested? Run `./gradlew clean ktlintCheck build koverVerify koverLog koverHtmlReport` on CI ## Changes - Integrate Kover plugin for code coverage analysis - Publish Html report - Run `./gradlew clean ktlintCheck build koverVerify koverLog koverHtmlReport` on CI ## 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 tooling update ## Checklist <!-- Go over all the following points, and put an `x` in all the boxes that apply. --> - [ ] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [ ] My code follows the repository's style guidelines - [x] New and existing tests pass locally - [ ] I have added appropriate error handling - [ ] I have added or updated documentation as needed ## Additional context <!-- Add any other context, implementation notes, or design decisions -->
38 lines
742 B
Kotlin
38 lines
742 B
Kotlin
plugins {
|
|
alias(libs.plugins.ktlint)
|
|
alias(libs.plugins.kover)
|
|
}
|
|
|
|
allprojects {
|
|
group = "io.modelcontextprotocol"
|
|
version = "0.6.0"
|
|
}
|
|
|
|
dependencies {
|
|
kover(project(":kotlin-sdk-core"))
|
|
kover(project(":kotlin-sdk-client"))
|
|
kover(project(":kotlin-sdk-server"))
|
|
kover(project(":kotlin-sdk-test"))
|
|
}
|
|
|
|
subprojects {
|
|
apply(plugin = "org.jlleitschuh.gradle.ktlint")
|
|
apply(plugin = "org.jetbrains.kotlinx.kover")
|
|
}
|
|
|
|
kover {
|
|
reports {
|
|
filters {
|
|
includes.classes("io.modelcontextprotocol.kotlin.sdk.*")
|
|
}
|
|
total {
|
|
log {
|
|
}
|
|
verify {
|
|
rule {
|
|
minBound(65)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|