Skip to content

Allow samples to run against local builds using mavenLocal() #197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

MarkusBillharz
Copy link

This PR introduces minimal changes to allow contributors to run the sample projects against local builds of the SDK, without breaking the independence of the samples.

Resolves #196

Changes

  • Add mavenLocal() to the repositories block in the sample projects so they can resolve locally published artifacts.
  • Add a short note to the contributing guidelines explaining how to publish locally for testing using ./gradlew publishToMavenLocal
  • Increase the Kotlin version of the mcp-server-sample to get it to build (ABI error).
  • Ensure the sample projects are included in the PR checks to verify they build.

This avoids directly linking the samples to the main project (as discussed in #119 (review)), while making it easier to test local changes during development.

To test it, I fake version bumped it on my clone to check that it is actually working as intended:
https://github.com/MarkusBillharz/kotlin-sdk/actions/runs/16523835710/job/46731929589

Types of changes

  • Non-breaking changes
  • Documentation update

Feedback welcome!

@MarkusBillharz MarkusBillharz force-pushed the task/support-local-builds-in-samples branch from eeafc29 to 7ebe530 Compare August 1, 2025 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Samples don't seem to easily support testing against local SDK changes
1 participant