Skip to content

Commit 93c2341

Browse files
authored
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 <!-- 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 - [ ] 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 -->
1 parent 8f9f484 commit 93c2341

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

settings.gradle.kts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,3 @@ include(
2424
":kotlin-sdk",
2525
":kotlin-sdk-test",
2626
)
27-
28-
// Include sample projects as composite builds if this is the root project
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-
}
45-
}
46-
// }

0 commit comments

Comments
 (0)