Title: Run each Spring Boot matrix version as its own Gradle test task · Issue #6379 · getsentry/sentry-java · GitHub
Open Graph Title: Run each Spring Boot matrix version as its own Gradle test task · Issue #6379 · getsentry/sentry-java
X Title: Run each Spring Boot matrix version as its own Gradle test task · Issue #6379 · getsentry/sentry-java
Description: A Sentry SDK for Java, Android and other JVM languages. - Run each Spring Boot matrix version as its own Gradle test task · Issue #6379 · getsentry/sentry-java
Open Graph Description: A Sentry SDK for Java, Android and other JVM languages. - Run each Spring Boot matrix version as its own Gradle test task · Issue #6379 · getsentry/sentry-java
X Description: A Sentry SDK for Java, Android and other JVM languages. - Run each Spring Boot matrix version as its own Gradle test task · Issue #6379 · getsentry/sentry-java
Opengraph URL: https://github.com/getsentry/sentry-java
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Run each Spring Boot matrix version as its own Gradle test task","articleBody":"The Spring Boot 2, 3 and 4 matrix workflows test each Boot version by rewriting `springboot2/3/4` in `gradle/libs.versions.toml` with perl, then running the integration suites. A version can only be tested locally by editing the catalog by hand, and each job recompiles the SDK and the suites against that version.\n\nInstead, register one `Test` task per Boot version that reuses the suite's compiled classes and runs them on a classpath resolved for that version, e.g. `:sentry-spring-boot-jakarta:integrationTestBoot3_2_12`. `integrationTestOtelAgentWithoutAutoInit` already reuses a suite's classes this way.\n\n* For each version, add a resolvable configuration that extends the suite's `implementation`/`runtimeOnly` and copies `runtimeClasspath`'s attributes. Swap the version with `resolutionStrategy.eachDependency { if (requested.group == \"org.springframework.boot\") useVersion(v) }`. This does the same as the perl edit: every catalog entry on `springboot2/3/4` is in that group, and so is the BOM, including `SpringBootPlugin.BOM_COORDINATES`. Libraries pinned to their own version, like `spring-kafka3`, still win conflicts as they do now.\n* The agent suites also need a per-version `agentFixture` runtime classpath passed to `ChildJvmTestArguments`, for both init modes.\n* Keep the version lists in one place (buildSrc), because the WAR suites in `sentry-spring{,-jakarta,-7}` need the same list as their Boot module. Put the loop in a helper so six modules don't each repeat it. It fits in the convention plugin from getsentry/sentry-java#6378.\n* Add one aggregate task per version for CI to call, and replace the perl step in the matrix workflows with it. That's roughly 80 test tasks (Boot 2: 6 suites × 5 versions, Boot 3: 7 × 4, Boot 4: 8 × 3).\n\nOpen problems:\n\n* **Boot 2.4–2.6 can't load the GraphQL/Kafka classes.** Today `bootSupportsGraphqlAndKafka` excludes them from the compile. Compiled once against 2.7.18, they'd be in the output, and component scanning on 2.4–2.6 would fail with `NoClassDefFoundError`. Options: move GraphQL/Kafka into a suite that only runs on 2.7, keep a second compilation with the excludes for the older versions, or drop 2.4–2.6 from the matrix.\n* **What gets compiled against which version changes.** The SDK and the suites would compile once against the catalog default, and only the runtime would vary. For the SDK that's closer to what users run (our published jar on their Boot version) and can catch binary incompatibilities that recompiling hides. But nothing would check any more that the SDK's main code compiles against the oldest supported version. The suite sources must also stick to APIs that exist in the oldest version of each line.\n* The Boot 2 suites' JVM 17 Kotlin target pin stays.\n\nCI can keep one job per version (same wall time and per-version PR checks as today, 5–7 min per job) or run one job per Boot line (one compile, less CPU, longer wall time, one check per line).\n\nStart with a spike on Boot 3, which has no GraphQL/Kafka gating: run `integrationTest`, compiled against the default 3.5.0, on a 3.2.12 classpath.\n\nDo this after the migration stack (getsentry/sentry-java#6332 and below) lands, so the in-flight PRs don't need rewriting.","author":{"url":"https://github.com/runningcode","@type":"Person","name":"runningcode"},"datePublished":"2026-10-26T13:25:48Z","url":"https://github.com/getsentry/sentry-java/issues/6379"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:15a5a593-a5c8-289f-d2bc-3926187c5d56 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8856:1C14E0:37F245:4EB8CF:6B046E2D |
| html-safe-nonce | c4e07609b11c3c0b72a7e00e49218124f83c5523c78fff428c931ab44690eb3e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODU2OjFDMTRFMDozN0YyNDU6NEVCOENGOjZCMDQ2RTJEIiwidmlzaXRvcl9pZCI6Ijc5NDc1OTcxMzQ4ODk3NzQ2MzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6851d1ea0d3ee7401ec185db7acb94345e377879ddd2db52f4d732a6b283213f |
| hovercard-subject-tag | repository:3368190 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/getsentry/sentry-java/issues/6379 |
| twitter:image | https://opengraph.githubassets.com/ea4b6b122c7dd1cadfcba3c45c0afdcc81347f2fac8cc6ad1f119b1068629736/getsentry/sentry-java |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ea4b6b122c7dd1cadfcba3c45c0afdcc81347f2fac8cc6ad1f119b1068629736/getsentry/sentry-java |
| og:image:alt | A Sentry SDK for Java, Android and other JVM languages. - Run each Spring Boot matrix version as its own Gradle test task · Issue #6379 · getsentry/sentry-java |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| turbo-cache-control | no-cache |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width