Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
<!-- the five below go together. Never change one without checking the
others. -->
<spring-boot.version>3.4.4</spring-boot.version>
<spring.version>6.2.5</spring.version>
<spring.version>7.0.6</spring.version>
<spring-security.version>6.4.4</spring-security.version>
<junit-version>5.6.3</junit-version>
<jackson-version>2.18.2</jackson-version>
Comment on lines +116 to 119

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.

P0 Spring version incompatible with Spring Boot and Spring Security

The spring.version property has been bumped to 7.0.6, but the companion properties were not updated. The comment directly above this block (line 113) explicitly warns: "the five below go together. Never change one without checking the others."

This creates two critical incompatibilities:

  1. Spring Boot 3.4.4 requires Spring Framework 6.x. Spring Framework 7.x is the basis for Spring Boot 4.x. Using Spring Boot 3.4.4 with Spring Framework 7.0.6 means all of Spring Boot's auto-configuration, BOM dependency management, and internal wiring will conflict with the 7.x API surface (which requires Jakarta EE 11, drops several older APIs, etc.).

  2. Spring Security 6.4.4 targets Spring Framework 6.x. Spring Security 7.x is the line that aligns with Spring Framework 7.x. Keeping 6.4.4 with Spring Framework 7.0.6 is an unsupported pairing.

The correct fix is to either:

  • Revert spring.version back to 6.2.5 to restore the compatible set, or
  • Upgrade all three together once Spring Boot 4.x reaches GA: upgrade spring-boot.version to 4.x, spring-security.version to 7.x, and keep spring.version at 7.0.6.
Suggested change
<spring.version>7.0.6</spring.version>
<spring-security.version>6.4.4</spring-security.version>
<junit-version>5.6.3</junit-version>
<jackson-version>2.18.2</jackson-version>
<spring-boot.version>3.4.4</spring-boot.version>
<spring.version>6.2.5</spring.version>
<spring-security.version>6.4.4</spring-security.version>

Expand Down
Loading