-
Couldn't load subscription status.
- Fork 169
Closed
Labels
Description
Describe the bug
Currently sample projects are viable only as a submodules of the main project.
To Reproduce
Steps to reproduce the behavior:
- User clones the repo
- cd samples/(project)
- Build gradle project- it fails
Expected behavior
- git clone
- cd kotlin-sdk/samples/PROJECT
- ./gradlew build
- Success 🎉
Logs
If applicable, add logs to help explain your problem.
./gradlew kotlin-mcp-server:runJvm
Welcome to Gradle 8.14.3!
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :kotlin-mcp-server:compileKotlinJvm FAILED
e: file:///Users/user/TestWorkspace/kotlin-sdk/samples/kotlin-mcp-server/src/commonMain/kotlin/server.kt:26:50 Unresolved reference 'ServerSession'.
e: file:///Users/user/TestWorkspace/kotlin-sdk/samples/kotlin-mcp-server/src/commonMain/kotlin/server.kt:98:48 Unresolved reference 'ServerSession'.
e: file:///Users/user/TestWorkspace/kotlin-sdk/samples/kotlin-mcp-server/src/commonMain/kotlin/server.kt:116:31 Unresolved reference 'onClose'.
e: file:///Users/user/TestWorkspace/kotlin-sdk/samples/kotlin-mcp-server/src/commonMain/kotlin/server.kt:124:60 Unresolved reference 'transport'.
DoD
- Samples are still compiled with the main project (publishToMavenLocal + replace sdk.version to snapshot in build script)
- Samples are continously compiled/tested as a separate GH workflow. sdk.version=latest released version