From 93c23412104cd3ab13aa82f80ba74c60edd6633c Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov <1517853+kpavlov@users.noreply.github.com> Date: Thu, 23 Oct 2025 19:41:57 +0300 Subject: [PATCH] Exclude samples from composite gradle build (#337) Exclude samples from composite gradle build ## Motivation and Context Circular dependency in composite build. Let's make samples more independent ## How Has This Been Tested? CI ## Breaking Changes No ## 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) - [ ] Documentation update - [x] Build configuration update ## Checklist - [x] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [x] My code follows the repository's style guidelines - [ ] New and existing tests pass locally - [ ] I have added appropriate error handling - [ ] I have added or updated documentation as needed ## Additional context --- settings.gradle.kts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index bead87b..368bff3 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -24,23 +24,3 @@ include( ":kotlin-sdk", ":kotlin-sdk-test", ) - -// Include sample projects as composite builds if this is the root project -// if (gradle.parent == null) { -includeBuild("samples/kotlin-mcp-client") { - dependencySubstitution { - substitute(module("io.modelcontextprotocol:kotlin-sdk-client")) - .using(project(":")) - } -} -// includeBuild("samples/kotlin-mcp-server") - -includeBuild("samples/weather-stdio-server") { - dependencySubstitution { - substitute(module("io.modelcontextprotocol:kotlin-sdk-client")) - .using(project(":")) - substitute(module("io.modelcontextprotocol:kotlin-sdk-server")) - .using(project(":")) - } -} -// }