Skip to content

build(deps): Bump Spring Boot to 4.2.0-RC2 - #6532

Draft
adinauer wants to merge 5 commits into
mainfrom
build/bump-spring-boot-4-2
Draft

adinauer wants to merge 5 commits into
mainfrom
build/bump-spring-boot-4-2

Conversation

@adinauer

@adinauer adinauer commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

📜 Description

Bump the Spring Boot 4 integration from 4.1.0 to 4.2.0-RC2, the latest available 4.2 pre-release.

Align OpenTelemetry with the 1.67.0 / 2.33.1 versions compatible with Spring Boot 4.2's dependency management. Add Spring's milestone repository, scoped to Spring artifact groups, so clean builds can resolve the release candidate. Keep the existing RestTemplate integration compiling despite its new removal warnings, update OpenTelemetry tests to install a no-op span processor now that providers without processors return non-recording spans, and build valid GraphQL test operations for GraphQL Java 25.

💡 Motivation and Context

Spring Boot 4.2 is not GA yet, so this moves the integration to the latest release candidate to expose compatibility work before the final release.

The bump found two SDK-side compatibility requirements: RestTemplate APIs are now marked for removal, and the previous OpenTelemetry instrumentation version is incompatible with the OpenTelemetry 1.67 runtime managed by Spring Boot 4.2.

💚 How did you test it?

  • ./gradlew spotlessApply
  • All sentry-spring-boot-4 unit and integration test suites
  • All sentry-opentelemetry unit test suites
  • ./gradlew -p sentry-samples --continue check
  • Spring Boot 3.2 integration matrix tasks with refreshed dependencies

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.

🔮 Next steps

  • Ask @getsentry/dev-infra to review the FOSSA finding for JUnit Jupiter 6.1.3's EPL-2.0 license.
  • Migrate remaining RestTemplate-specific instrumentation before Spring removes those APIs.

adinauer and others added 2 commits November 10, 2026 09:15
Align OpenTelemetry with the version managed by Spring Boot 4.2. Keep RestTemplate support compiling despite upstream removal warnings and update tests for OpenTelemetry's no-processor optimization.

Co-Authored-By: Claude <noreply@anthropic.com>
@sentry

sentry Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.63.0 (1) release

⚙️ sentry-android Build Distribution Settings

@adinauer
adinauer force-pushed the build/bump-spring-boot-4-2 branch from fea5757 to 9e6cbc3 Compare November 10, 2026 09:28
Keep the Spring 7 sample compiling with warnings treated as errors after the Spring Boot 4.2 dependency bump.

Co-Authored-By: Claude <noreply@anthropic.com>
@adinauer
adinauer force-pushed the build/bump-spring-boot-4-2 branch from 9e6cbc3 to b458c42 Compare November 10, 2026 10:04
adinauer and others added 2 commits November 10, 2026 11:18
Resolve Spring Boot 4.2 release candidate plugin and framework artifacts in clean CI environments.

Co-Authored-By: Claude <noreply@anthropic.com>
Include a selection set so GraphQL Java 25 can print the test operations used by Spring subscription error reporting tests.

Co-Authored-By: Claude <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant