Skip to content

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

Merged
adinauer merged 4 commits into
mainfrom
build/bump-spring-boot-4-2-0
Nov 25, 2026
Merged

adinauer merged 4 commits into
mainfrom
build/bump-spring-boot-4-2-0

Conversation

@adinauer

@adinauer adinauer commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

📜 Description

Bump the Spring Boot 4 dependency from 4.1.0 to the stable 4.2.0 release.

This updates the Spring Boot 4 integration tests and samples to Spring Framework 7.1, Spring GraphQL 2.1, Spring Security 7.2, and the other dependencies managed by Spring Boot 4.2. The forward-compatible source and GraphQL test preparation landed separately in #6532.

💡 Motivation and Context

Spring Boot 4.2.0 is now generally available from Maven Central and the Gradle Plugin Portal. We can test and publish against the stable release without adding milestone repositories or release-candidate dependencies.

💚 How did you test it?

  • make format api
  • ./gradlew :sentry-spring-7:test :sentry-spring-boot-4:check --console=plain
  • ./gradlew :sentry-spring-7:allIntegrationTestsBoot4_2_0 :sentry-spring-boot-4:allIntegrationTestsBoot4_2_0 --console=plain
  • ./gradlew -p sentry-samples --continue check --console=plain
  • Started all six Spring Boot 4 samples and exercised HTTP endpoints with local mock Sentry and OTLP receivers
    • Standard MVC
    • Log4j2
    • OpenTelemetry agent
    • OpenTelemetry agentless
    • OTLP export
    • WebFlux

📝 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

  • Migrate remaining RestTemplate instrumentation before Spring Framework 8 removes those APIs.

#skip-changelog

adinauer and others added 2 commits November 25, 2026 11:24
Update the Spring Boot 4 integration and samples to the stable 4.2 release, including Spring Framework 7.1 and Spring GraphQL 2.1.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

PR risk: medium

For commit e2bbe68.

Main concerns: dependencies customers inherit, reach, public contract.

Rules that block low also fired:

  • R5: dependencies or bundled SDK versions changed: gradle/libs.versions.toml, gradle/spring-boot-versions.json
  • R6: build or release configuration changed: gradle/libs.versions.toml, gradle/spring-boot-versions.json

This label is a hint for reviewers, not an approval.

Add Spring Boot 4.2.0 to the compatibility matrix while retaining the existing Spring Boot 4 versions.

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

sentry Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

📲 Install Builds

Android

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

⚙️ sentry-android Build Distribution Settings

@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 25, 2026
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 25, 2026
@adinauer
adinauer marked this pull request as ready for review November 25, 2026 10:42
@adinauer
adinauer requested a review from a team as a code owner November 25, 2026 10:42
@adinauer
adinauer requested review from markushi and romtsn and removed request for a team November 25, 2026 10:42
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 25, 2026
@adinauer
adinauer merged commit e14402f into main Nov 25, 2026
59 of 60 checks passed
@adinauer
adinauer deleted the build/bump-spring-boot-4-2-0 branch November 25, 2026 11:54
"boot2": ["2.7.0", "2.7.18"],
"boot3": ["3.2.12", "3.3.13", "3.4.13", "3.5.13"],
"boot4": ["4.0.0", "4.0.5", "4.1.0"]
"boot4": ["4.0.0", "4.0.5", "4.1.0", "4.2.0"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we drop either 4.0.0 or 4.0.5 ? what's the value in having both?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants