Skip to content

Commit 0ed92f5

Browse files
authored
Conditionally imports the samples only if its the root project (#292)
1 parent 9ceadc6 commit 0ed92f5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

settings.gradle.kts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ include(
2525
":kotlin-sdk-test",
2626
)
2727

28-
// Include sample projects as composite builds
29-
includeBuild("samples/kotlin-mcp-client")
30-
includeBuild("samples/kotlin-mcp-server")
31-
includeBuild("samples/weather-stdio-server")
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+
includeBuild("samples/kotlin-mcp-server")
32+
includeBuild("samples/weather-stdio-server")
33+
}

0 commit comments

Comments
 (0)