Repository navigation
build(samples): [Sample Tests 47] Move the JVM samples to their own build - #6394
Merged
Merged
Conversation
This was referenced Oct 27, 2026
Merged
Merged
📲 Install BuildsAndroid
|
runningcode
force-pushed
the
no/android-integration-tests-own-build
branch
from
October 27, 2026 14:33
04f1683 to
7771435
Compare
runningcode
force-pushed
the
no/jvm-samples-own-build
branch
from
October 27, 2026 14:33
25775a4 to
02f2246
Compare
runningcode
force-pushed
the
no/jvm-samples-own-build
branch
from
October 27, 2026 15:08
02f2246 to
c78db42
Compare
runningcode
force-pushed
the
no/android-integration-tests-own-build
branch
from
October 27, 2026 15:08
7771435 to
76332ce
Compare
runningcode
force-pushed
the
no/jvm-samples-own-build
branch
from
October 28, 2026 10:09
c78db42 to
f10b2e7
Compare
runningcode
force-pushed
the
no/android-integration-tests-own-build
branch
from
October 28, 2026 10:09
76332ce to
77bdde5
Compare
runningcode
force-pushed
the
no/jvm-samples-own-build
branch
from
October 28, 2026 10:38
f10b2e7 to
4b70a06
Compare
runningcode
force-pushed
the
no/android-integration-tests-own-build
branch
from
October 28, 2026 10:38
77bdde5 to
12d5c7c
Compare
runningcode
force-pushed
the
no/android-integration-tests-own-build
branch
from
October 28, 2026 16:32
12d5c7c to
0ec48f1
Compare
runningcode
force-pushed
the
no/jvm-samples-own-build
branch
2 times, most recently
from
October 28, 2026 16:40
01c2d1c to
8324d47
Compare
This was referenced Nov 2, 2026
runningcode
force-pushed
the
no/android-integration-tests-own-build
branch
2 times, most recently
from
November 5, 2026 16:34
fcc7ba0 to
310e34e
Compare
runningcode
force-pushed
the
no/jvm-samples-own-build
branch
from
November 5, 2026 17:09
91d3e9c to
28f75b3
Compare
runningcode
force-pushed
the
no/android-integration-tests-own-build
branch
from
November 5, 2026 17:16
ebe1d63 to
356db6c
Compare
runningcode
force-pushed
the
no/jvm-samples-own-build
branch
from
November 5, 2026 17:20
28f75b3 to
f33be46
Compare
runningcode
marked this pull request as ready for review
November 5, 2026 17:28
runningcode
requested review from
0xadam-brown and
romtsn
and removed request for
a team
November 5, 2026 17:28
runningcode
force-pushed
the
no/android-integration-tests-own-build
branch
from
November 5, 2026 17:32
356db6c to
9d8ac7b
Compare
runningcode
force-pushed
the
no/jvm-samples-own-build
branch
from
November 5, 2026 17:32
f33be46 to
f8c877f
Compare
runningcode
force-pushed
the
no/android-integration-tests-own-build
branch
from
November 5, 2026 17:35
9d8ac7b to
27ec18e
Compare
runningcode
force-pushed
the
no/jvm-samples-own-build
branch
from
November 5, 2026 17:35
e38a01e to
6cb9996
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6cb9996. Configure here.
Base automatically changed from
no/android-integration-tests-own-build
to
no/android-sample-own-build
November 6, 2026 14:28
Base automatically changed from
no/android-sample-own-build
to
no/samples-build-groundwork
November 6, 2026 14:29
runningcode
force-pushed
the
no/samples-build-groundwork
branch
from
November 6, 2026 14:34
8d0ed83 to
0825f70
Compare
The 28 JVM samples are now a standalone Gradle build in sentry-samples that includes the SDK build, like the Android sample and the Android integration tests. They depend on io.sentry:* coordinates, which Gradle substitutes with the SDK's projects. The SDK build doesn't include them back, so the Spring Boot, gretty and shadow plugins the samples apply no longer load in the SDK build. The three bootRunWithAgent tasks find the agent jar from the repository root and take the SDK version from the catalog, since the samples build has its own root directory and gradle.properties. With no samples or integration tests left in the SDK build, the name filters that skipped them for publishing and CodeQL go too. Root check and spotlessApply no longer reach the samples, so preMerge runs this build's check, which covers what the root check ran for them: compilation, jars and spotless. The format workflow runs its spotlessApply. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gradle.properties, gradlew, gradle/wrapper and gradle/gradle-daemon-jvm.properties are now symlinks to the SDK build's files, as in the Android sample and integration test builds. The copied gradle.properties had drifted from the root one (-Xmx6g and CrashOnOutOfMemoryError), and the build had no wrapper or daemon JDK pin. The settings read the SDK version from the shared versionName property, use the root build's Develocity plugin version, and include each sample on its own line, matching the other separate builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each sample applies io.sentry.spotless and io.sentry.jdk-target in its own plugins block, as the modules of the other separate builds do, instead of the root script applying them to every subproject. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The JVM samples' check runs as its own job in the Samples workflow, like the other separate builds, instead of through checkSamples in make preMerge, so it no longer lengthens the required Build job. Dependabot scans their build too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the JVM samples in their own build, no project in the SDK build applies io.spring.dependency-management. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
runningcode
force-pushed
the
no/jvm-samples-own-build
branch
from
November 6, 2026 14:50
6cb9996 to
48391c4
Compare
romtsn
approved these changes
Nov 6, 2026
romtsn
left a comment
Contributor
There was a problem hiding this comment.
Cursor comment might be legit, pre-approving
The dependencies block read sentryVersion before its declaration ran, so the sample asked for io.sentry:sentry-servlet:null. The composite build substitutes the SDK project by group and name, which hid it, but resolving published artifacts would fail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

PR Stack (Sample Tests)
main)📜 Description
Here's a little diagram from my clanker:

This moves the `sentry-samples to their own build
💡 Motivation and Context
Part of the Linear project "Separate sample projects and tests from build." (JAVA-626): untie the SDK build from the versions used to test.
💚 How did you test it?
checkpasses fromsentry-samplesthrough its symlinked wrapper. The daemon starts on JDK 21 from the symlinked pin.checkruns what the rootcheckran for the samples: 28compileJava, 20compileKotlin, 20jar, 5shadowJarand 28spotlessCheck.io.sentry:*coordinate is checked against the SDK's project names. Typesafe accessors drop the hyphen before a digit, sosentrySpring7issentry-spring-7.assemble --dry-runconfigures every SDK project without the Spring dependency-management declaration.make formatruns all four builds and changes nothing.bootRunWithAgent.📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Decoupling AGP from the SDK build needs the build-local Maven repo (JAVA-625).
#skip-changelog
🤖 Generated with Claude Code