Skip to content

Upgrade Spring Boot to 3.5.16 - #813

Open
aarvnd wants to merge 1 commit into
Women-Coding-Community:mainfrom
aarvnd:feat/spring-boot-upgrade
Open

aarvnd wants to merge 1 commit into
Women-Coding-Community:mainfrom
aarvnd:feat/spring-boot-upgrade

Conversation

@aarvnd

@aarvnd aarvnd commented Oct 7, 2026

Copy link
Copy Markdown

Description

Upgrades Spring Boot from 3.2.5 (out of OSS support) to 3.5.16, the latest 3.x release, and bumps what has to follow it:

  • org.springframework.boot plugin 3.2.5 → 3.5.16
  • io.spring.dependency-management 1.1.4 → 1.1.7
  • springdoc-openapi-starter-webmvc-ui 2.6.0 → 2.8.17 (2.6 targets Boot 3.3)
  • 16 controller/configuration tests: @MockBean → @MockitoBean (@MockBean is deprecated for removal since Boot 3.4). This removes ~100 [removal] warnings.

No production code changes were needed.

Draft until the target is confirmed: 3.5.x keeps this a small, safe upgrade. Moving to Spring Boot 4.x would be a bigger change (renamed starters like starter-web → starter-webmvc, Jackson 3 vs. the pinned jackson-datatype-jsr310:2.19.2, springdoc 3.x, probably a newer Gradle than 8.7). Happy to do that instead if that's the goal.

Related Issue

Closes #773

Change Type

  • Bug Fix
  • New Feature
  • Code Refactor
  • Documentation
  • Test
  • Other (dependency upgrade)

Screenshots

n/a (no API changes)

Pull request checklist

  • I checked and followed the contributor guide
  • I have tested my changes locally.
    • ./gradlew test on JDK 21: 859 tests, 0 failures, 3 skipped (same as before the upgrade)
    • ./gradlew :pmdAll passes
    • Not verified locally: testIntegration needs Docker (Postgres Testcontainers); it fails the same way on 3.2.5 without Docker, so I'm relying on CI for it.

Spring Boot 3.2.x is out of open-source support. Move to the latest 3.x
release and bump the libraries that must follow it:

- org.springframework.boot plugin 3.2.5 -> 3.5.16
- io.spring.dependency-management 1.1.4 -> 1.1.7
- springdoc-openapi-starter-webmvc-ui 2.6.0 -> 2.8.17 (2.6 targets Boot 3.3)

Replace @MockBean (deprecated for removal since Boot 3.4) with Spring
Framework's @MockitoBean in the controller tests.
@sonarqubecloud

sonarqubecloud Bot commented Oct 7, 2026

Copy link
Copy Markdown

@dricazenck

Copy link
Copy Markdown
Collaborator

ideally we should migrate from minority to major versions, so I think this one could be the first step to the major version.

@aarvnd
aarvnd marked this pull request as ready for review October 12, 2026 20:54
@aarvnd
aarvnd requested a review from a team as a code owner October 12, 2026 20:54
@aarvnd
aarvnd requested review from OlenaReukova, Sowmiya07, Tooonia, dricazenck, goelsonali, lauracabtay and nverbic and a balanced review from Copilot October 12, 2026 20:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@aarvnd

aarvnd commented Oct 12, 2026

Copy link
Copy Markdown
Author

Thanks @dricazenck, makes sense — 3.5.x first so all deprecations are cleaned up, then 4.x as a separate step. I've marked this ready for review. Happy to pick up the 4.x migration as a follow-up once this lands.

@goelsonali goelsonali left a comment

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.

LGTM, we can ignore these sonar issues

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Spring-boot version upgrade

4 participants