Repository navigation
feat: build Spring modules against Spring Boot 4.1, test 4.1 and 4.2 - #1922
javier-aliaga wants to merge 5 commits into
Conversation
Spring Boot 4.0 OSS support ends on 2026-12-31. The 1.20 line compiles against Spring Boot 4.1.3 and is tested against 4.1 and 4.2. - Use one springboot.version property everywhere; drop the per-module springboot4.version copies so the CI override reaches every test module. - Remove the Tomcat 11.0.25 override; Spring Boot 4.1.3 manages 11.0.27. - Make the Jackson 3 BOM version a property (jackson3.version). - Run the PR build matrix on Spring Boot 4.1.x. - Document supported Spring Boot versions per SDK line and the BOM import order in SUPPORT.md. Signed-off-by: Javier Aliaga <javier@diagrid.io>
spring-boot-compat.yml runs the integration tests weekly against Spring Boot 4.1 and 4.2, with the Jackson, Netty and OpenTelemetry versions that Spring Boot manages, the way an application sees the SDK. merge-checker.yml reports on every PR whether that scheduled run is green on master and whether the latest commit of master and of the two newest release branches passed CI. It is not a required check. Signed-off-by: Javier Aliaga <javier@diagrid.io>
There was a problem hiding this comment.
🟡 Changes recommended
Active moderate findings leave CI results potentially green while unverified and prevent the compatibility matrix from exercising the intended Spring Boot and Jackson versions.
4 open issues
What changed in this PR
Updates the SDK’s Spring integration baseline for the 1.20.x line from Spring Boot 4.0 to 4.1.3, adds compatibility testing for Spring Boot 4.1 and 4.2, and revises support and BOM documentation.
Changes:
- Centralizes Spring Boot and Jackson 3 version configuration across Maven modules.
- Updates the build matrix and adds scheduled compatibility and branch-health workflows.
- Documents supported Spring Boot lines, version selection, and BOM import behavior.
| File | Description |
|---|---|
| SUPPORT.md | Updates supported SDK and Spring Boot lines and adds guidance on version selection and BOM ordering. |
| spring-boot-sdk-tests/pom.xml | Uses the shared Spring Boot version property and supports CI version overrides. |
| spring-boot-examples/pom.xml | Migrates example dependency management to the shared Spring Boot version property. |
| sdk-tests/pom.xml | Uses the shared Spring Boot version property for integration-test dependency management. |
| README.md | Links users to the revised Spring Boot compatibility and dependency guidance. |
| pom.xml | Sets the Spring Boot 4.1.3 baseline, introduces the Jackson 3 version property, and removes the obsolete Tomcat override. |
| dapr-spring/dapr-spring-data/pom.xml | Moves Spring Data dependency management to the shared Spring Boot version property. |
| dapr-spring/dapr-spring-boot-starters/dapr-spring-boot-starter/pom.xml | Moves starter dependency management to the shared Spring Boot version property. |
| dapr-spring/dapr-spring-boot-starters/dapr-spring-boot-starter-test/pom.xml | Moves starter-test dependency management to the shared Spring Boot version property. |
| dapr-spring/dapr-spring-boot-autoconfigure/pom.xml | Moves autoconfigure dependency management to the shared Spring Boot version property. |
| .github/workflows/spring-boot-compat.yml | Adds scheduled and manually triggered compatibility testing for Spring Boot 4.1.3 and 4.2.0 on JDK 17 and 25. |
| .github/workflows/merge-checker.yml | Adds health reporting for scheduled compatibility runs and recent master and release-branch CI results. |
| .github/workflows/build.yml | Updates the required build matrix from Spring Boot 4.0.x to 4.1.x. |
Review effort: Lite
Signed-off-by: Javier Aliaga <javier@diagrid.io>
- spring-boot-examples gets the custom-spring-boot-version profile
- Jackson 3 BOM imports use ${jackson3.version} instead of a literal
- README compatibility note reflects the 1.20/1.19/1.18 lines
- merge-checker title no longer reports green while CI is still running
Signed-off-by: Javier Aliaga <javier@diagrid.io>
There was a problem hiding this comment.
🟡 Changes recommended
The change still has an active workflow logic issue that can incorrectly report success while a legacy status remains pending, along with inconsistent Spring Boot dependency guidance in the README examples.
3 open issues
2 resolved since last review
Review effort: Lite
Signed-off-by: Javier Aliaga <javier@diagrid.io>
There was a problem hiding this comment.
🔵 Needs a closer look
An active moderate issue remains in .github/workflows/merge-checker.yml because pending legacy commit statuses can be treated as healthy, allowing the check to pass before the latest commit is complete.
No open issues 🎉
3 resolved since last review
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1922 +/- ##
=========================================
Coverage 82.66% 82.66%
Complexity 3966 3966
=========================================
Files 359 359
Lines 11965 11965
Branches 1339 1339
=========================================
Hits 9891 9891
Misses 1567 1567
Partials 507 507 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|


Description
Spring Boot 4.0 OSS support ends on 2026-12-31. This PR moves the 1.20 line to Spring Boot 4.1 and tests it against 4.1 and 4.2.
Build and dependencies:
springboot.versionproperty replaces the per-modulespringboot4.versioncopies. Before this change, thePRODUCT_SPRING_BOOT_VERSIONoverride only changedspringboot.version, sosdk-testskept running on 4.0.8.jackson3.version, so CI can override it.CI:
spring-boot-compat.ymlruns every Monday and on demand. It runs the integration tests against Spring Boot 4.1.3 and 4.2.0 on JDK 17 and 25. It uses the Jackson, Netty and OpenTelemetry versions that Spring Boot manages, which is what an application gets when it imports the Spring Boot BOM first.merge-checker.ymlis based on the master-health job in dapr/dapr (source). On every PR it reports whether the latest scheduledspring-boot-compat.ymlrun on master is green. It also reports whether the latest commit of master and of the two newestrelease-*branches passed CI. It is not a required check and does not test the PR.Docs:
SUPPORT.mdlists Spring Boot 4.1.x and 4.2.x for 1.20.x and 4.0.x for 1.19.x. It also has a new section on which Spring Boot version an application gets and on BOM import order.README.mdlinks to it.Before merge:
release and master branchesruleset requiresBuild jdk:{17,21,25} sb:4.0.x exp:false. The matrix now reportssb:4.1.x, so an admin has to rename those required checks or this PR cannot merge.SUPPORT.mdmoves 1.19.x to maintenance. Please confirm.netty.version(4.2.17) andjackson.version(2.21.7) are older than what Spring Boot 4.1.3 manages (4.2.20 and 2.21.8). This PR does not change them.Issue reference
No issue. A user asked whether the SDK supports Spring Boot 4.2.
Checklist
./mvnw clean install -DskipITs=truepasses on JDK 17)SUPPORT.md,README.md)