File tree Expand file tree Collapse file tree 10 files changed +69
-14
lines changed Expand file tree Collapse file tree 10 files changed +69
-14
lines changed Original file line number Diff line number Diff line change @@ -36,24 +36,26 @@ jobs:
3636
3737 - name : Build with Gradle
3838 run : |-
39- ./gradlew --no-daemon --rerun-tasks \
39+ ./gradlew --no-daemon \
40+ --rerun-tasks \
4041 clean \
4142 ktlintCheck \
4243 build \
4344 koverLog koverHtmlReport \
44- publishToMavenLocal
45+ publishToMavenLocal \
46+ -Pversion=0.0.1-SNAPSHOT
4547
4648 - name : Build Kotlin-MCP-Client Sample
4749 working-directory : ./samples/kotlin-mcp-client
48- run : ./../../ gradlew --no-daemon clean build
50+ run : ./gradlew --no-daemon clean build -Pmcp.kotlin.overrideVersion=0.0.1-SNAPSHOT
4951
5052 - name : Build Kotlin-MCP-Server Sample
5153 working-directory : ./samples/kotlin-mcp-server
52- run : ./../../ gradlew --no-daemon clean build
54+ run : ./gradlew --no-daemon clean build -Pmcp.kotlin.overrideVersion=0.0.1-SNAPSHOT
5355
5456 - name : Build Weather-Stdio-Server Sample
5557 working-directory : ./samples/weather-stdio-server
56- run : ./../../ gradlew --no-daemon clean build
58+ run : ./gradlew --no-daemon clean build -Pmcp.kotlin.overrideVersion=0.0.1-SNAPSHOT
5759
5860 - name : Upload Reports
5961 if : ${{ !cancelled() }}
Original file line number Diff line number Diff line change @@ -4,11 +4,6 @@ plugins {
44 alias(libs.plugins.kover)
55}
66
7- allprojects {
8- group = " io.modelcontextprotocol"
9- version = " 0.7.4-SNAPSHOT"
10- }
11-
127dependencies {
138 dokka(project(" :kotlin-sdk-core" ))
149 dokka(project(" :kotlin-sdk-client" ))
Original file line number Diff line number Diff line change @@ -12,3 +12,6 @@ kotlin.js.yarn=false
1212# MPP
1313kotlin.mpp.enableCInteropCommonization =true
1414kotlin.native.ignoreDisabledTargets =true
15+
16+ group =io.modelcontextprotocol
17+ version =0.7.4-SNAPSHOT
Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ org.gradle.configuration-cache=true
22org.gradle.parallel =true
33org.gradle.caching =true
44
5+ # mcp.kotlin.overrideVersion=0.0.1-SNAPSHOT
6+
Original file line number Diff line number Diff line change @@ -10,4 +10,16 @@ dependencyResolutionManagement {
1010 mavenLocal()
1111 mavenCentral()
1212 }
13+
14+ versionCatalogs {
15+ create(" libs" ) {
16+ val mcpKotlinVersion = providers.gradleProperty(
17+ " mcp.kotlin.overrideVersion" ,
18+ ).orNull
19+ if (mcpKotlinVersion != null ) {
20+ logger.lifecycle(" Using the override version $mcpKotlinVersion of KotlinMCP SDK" )
21+ version(" mcp-kotlin" , mcpKotlinVersion)
22+ }
23+ }
24+ }
1325}
Original file line number Diff line number Diff line change 11org.gradle.configuration-cache =true
22org.gradle.parallel =true
33org.gradle.caching =true
4+
5+ # mcp.kotlin.overrideVersion=0.0.1-SNAPSHOT
Original file line number Diff line number Diff line change @@ -10,4 +10,16 @@ dependencyResolutionManagement {
1010 mavenLocal()
1111 mavenCentral()
1212 }
13+
14+ versionCatalogs {
15+ create(" libs" ) {
16+ val mcpKotlinVersion = providers.gradleProperty(
17+ " mcp.kotlin.overrideVersion" ,
18+ ).orNull
19+ if (mcpKotlinVersion != null ) {
20+ logger.lifecycle(" Using the override version $mcpKotlinVersion of KotlinMCP SDK" )
21+ version(" mcp-kotlin" , mcpKotlinVersion)
22+ }
23+ }
24+ }
1325}
Original file line number Diff line number Diff line change 11org.gradle.configuration-cache =true
22org.gradle.parallel =true
33org.gradle.caching =true
4+
5+ # mcp.kotlin.overrideVersion=0.0.1-SNAPSHOT
Original file line number Diff line number Diff line change @@ -12,4 +12,16 @@ dependencyResolutionManagement {
1212 mavenLocal()
1313 mavenCentral()
1414 }
15+
16+ versionCatalogs {
17+ create(" libs" ) {
18+ val mcpKotlinVersion = providers.gradleProperty(
19+ " mcp.kotlin.overrideVersion" ,
20+ ).orNull
21+ if (mcpKotlinVersion != null ) {
22+ logger.lifecycle(" Using the override version $mcpKotlinVersion of KotlinMCP SDK" )
23+ version(" mcp-kotlin" , mcpKotlinVersion)
24+ }
25+ }
26+ }
1527}
Original file line number Diff line number Diff line change @@ -26,8 +26,21 @@ include(
2626)
2727
2828// Include sample projects as composite builds if this is the root project
29- if (gradle.parent == null ) {
30- includeBuild(" samples/kotlin-mcp-client" )
31- includeBuild(" samples/kotlin-mcp-server" )
32- includeBuild(" samples/weather-stdio-server" )
29+ // if (gradle.parent == null) {
30+ includeBuild(" samples/kotlin-mcp-client" ) {
31+ dependencySubstitution {
32+ substitute(module(" io.modelcontextprotocol:kotlin-sdk-client" ))
33+ .using(project(" :" ))
34+ }
35+ }
36+ // includeBuild("samples/kotlin-mcp-server")
37+
38+ includeBuild(" samples/weather-stdio-server" ) {
39+ dependencySubstitution {
40+ substitute(module(" io.modelcontextprotocol:kotlin-sdk-client" ))
41+ .using(project(" :" ))
42+ substitute(module(" io.modelcontextprotocol:kotlin-sdk-server" ))
43+ .using(project(" :" ))
44+ }
3345}
46+ // }
You can’t perform that action at this time.
0 commit comments