Skip to content

Add Gradle packaged-JAR conformance example - #26

Open
r-afael wants to merge 1 commit into
senor14:mainfrom
r-afael:examples/gradle-packaged-jar
Open

r-afael wants to merge 1 commit into
senor14:mainfrom
r-afael:examples/gradle-packaged-jar

Conversation

@r-afael

@r-afael r-afael commented Sep 23, 2026

Copy link
Copy Markdown

Closes #21.

Adds a standalone Gradle example with a tiny stdio MCP server and a conformance test that launches build/libs/gradle-packaged-jar.jar. The test task depends on jar, which packages the server and Jackson. Includes a pinned, checksum-verified wrapper, Linux/Windows instructions, and a link from the README's Gradle guidance.

The existing Linux/Windows × JDK 17/21 CI matrix now runs the sample, using gradlew.bat on Windows.

Validation:

  • mvn -B test: 53 tests passed on macOS.
  • ./gradlew --no-daemon clean test: passed on macOS.
  • ./gradlew --no-daemon test: passed from clean sample directories in Linux JDK 17 and 21 containers, with spaces in the directory path.
  • Removing dependsOn tasks.jar in a separate clean copy made the test fail with Unable to access jarfile, as expected.
  • Windows execution is pending CI.

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.

Add a Gradle sample project that runs a packaged-jar conformance test after the jar task

1 participant