Skip to content

feat: build Spring modules against Spring Boot 4.1, test 4.1 and 4.2 - #1922

Draft
javier-aliaga wants to merge 5 commits into
dapr:masterfrom
javier-aliaga:feat/spring-boot-4.1-baseline
Draft

javier-aliaga wants to merge 5 commits into
dapr:masterfrom
javier-aliaga:feat/spring-boot-4.1-baseline

Conversation

@javier-aliaga

Copy link
Copy Markdown
Contributor

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:

  • The Spring modules compile against Spring Boot 4.1.3. The PR build matrix runs on 4.1.x.
  • One springboot.version property replaces the per-module springboot4.version copies. Before this change, the PRODUCT_SPRING_BOOT_VERSION override only changed springboot.version, so sdk-tests kept running on 4.0.8.
  • The Tomcat 11.0.25 override is removed. Spring Boot 4.1.3 manages 11.0.27, so the override would downgrade it.
  • The Jackson 3 BOM version is now a property, jackson3.version, so CI can override it.

CI:

  • spring-boot-compat.yml runs 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.yml is based on the master-health job in dapr/dapr (source). On every PR it reports whether the latest scheduled spring-boot-compat.yml run on master is green. It also reports whether the latest commit of master and of the two newest release-* branches passed CI. It is not a required check and does not test the PR.

Docs:

  • SUPPORT.md lists 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.md links to it.

Before merge:

  • The release and master branches ruleset requires Build jdk:{17,21,25} sb:4.0.x exp:false. The matrix now reports sb:4.1.x, so an admin has to rename those required checks or this PR cannot merge.
  • SUPPORT.md moves 1.19.x to maintenance. Please confirm.
  • netty.version (4.2.17) and jackson.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

  • Code compiles correctly (./mvnw clean install -DskipITs=true passes on JDK 17)
  • Created/updated tests (CI matrix and weekly compatibility workflow)
  • Extended the documentation (SUPPORT.md, README.md)

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>
Copilot AI lite review requested due to automatic review settings November 27, 2026 11:24

Copilot AI 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.

🟡 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

Comment thread .github/workflows/merge-checker.yml Resolved
Comment thread spring-boot-examples/pom.xml Resolved
Comment thread README.md Resolved
Signed-off-by: Javier Aliaga <javier@diagrid.io>
Copilot AI lite review requested due to automatic review settings November 27, 2026 14:35

Copilot AI 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.

🔵 Needs a closer look

Active moderate issues remain in the merge-checker logic and Spring Boot compatibility override, with an additional README compatibility contradiction requiring correction.

4 open issues

Review effort: Lite

- 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>
Copilot AI lite review requested due to automatic review settings November 27, 2026 16:21

Copilot AI 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.

🟡 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

Comment thread README.md Resolved
Signed-off-by: Javier Aliaga <javier@diagrid.io>
Copilot AI lite review requested due to automatic review settings November 27, 2026 18:13

Copilot AI 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.

🔵 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

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.66%. Comparing base (02a69d7) to head (b7638e1).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants