Skip to content

Supporting Jackson3 DaprObjectSerializer#1657

Merged
salaboy merged 14 commits into
dapr:masterfrom
salaboy:jackson3
Feb 20, 2026
Merged

Supporting Jackson3 DaprObjectSerializer#1657
salaboy merged 14 commits into
dapr:masterfrom
salaboy:jackson3

Conversation

@salaboy

@salaboy salaboy commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

Description

This PR includes some reorganisation to support custom Spring Boot 4.x auto configuration.
The intended result is to have DaprClientBuilder using Jackson3 customise JSONMapper to create an instance of the ObjectMapper.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #1647

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@salaboy
salaboy requested review from a team as code owners February 16, 2026 12:14
@salaboy
salaboy force-pushed the jackson3 branch 6 times, most recently from 38c41f3 to 0f4e951 Compare February 17, 2026 11:51
salaboy and others added 10 commits February 17, 2026 12:58
* Renaming streaming subscription to "subscribeToTopic".

Signed-off-by: Artur Ciocanu <[email protected]>

* Bring back subscribeToEvents for backward compatibility.

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix rebase conflicts

Signed-off-by: Artur Ciocanu <[email protected]>

* Add tests for deprecated events methods.

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>

@javier-aliaga javier-aliaga 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, some new files have the wrong date in the header, other than that seems fine 👍

@salaboy
salaboy merged commit 834b6b3 into dapr:master Feb 20, 2026
22 of 26 checks passed
github-actions Bot pushed a commit that referenced this pull request Feb 20, 2026
* initial restructure for spring-boot-4-autoconfigure

Signed-off-by: salaboy <[email protected]>

* updating sb4 with Jackson3 support and tests

Signed-off-by: salaboy <[email protected]>

* Renaming streaming subscription to "subscribeToTopic" (#1626)

* Renaming streaming subscription to "subscribeToTopic".

Signed-off-by: Artur Ciocanu <[email protected]>

* Bring back subscribeToEvents for backward compatibility.

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix rebase conflicts

Signed-off-by: Artur Ciocanu <[email protected]>

* Add tests for deprecated events methods.

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Signed-off-by: salaboy <[email protected]>

* fixing new packages

Signed-off-by: salaboy <[email protected]>

* fixing sdk-tests

Signed-off-by: salaboy <[email protected]>

* updating test coverage

Signed-off-by: salaboy <[email protected]>

* missing package from example test

Signed-off-by: salaboy <[email protected]>

* aliging test junit version

Signed-off-by: salaboy <[email protected]>

* fixing spring boot 3 new packages

Signed-off-by: salaboy <[email protected]>

* increase test coverage for jackson3

Signed-off-by: salaboy <[email protected]>

---------

Signed-off-by: salaboy <[email protected]>
Signed-off-by: Artur Ciocanu <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
(cherry picked from commit 834b6b3)
@codecov

codecov Bot commented Feb 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.46%. Comparing base (fb24664) to head (41d8061).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...autoconfigure/client/Jackson3ObjectSerializer.java 95.83% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1657      +/-   ##
============================================
+ Coverage     79.31%   79.46%   +0.14%     
- Complexity     2151     2191      +40     
============================================
  Files           234      237       +3     
  Lines          6474     6574     +100     
  Branches        703      729      +26     
============================================
+ Hits           5135     5224      +89     
- Misses          985      996      +11     
  Partials        354      354              

☔ View full report in Codecov by Sentry.
📢 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.

javier-aliaga pushed a commit to javier-aliaga/java-sdk that referenced this pull request Feb 20, 2026
* initial restructure for spring-boot-4-autoconfigure

Signed-off-by: salaboy <[email protected]>

* updating sb4 with Jackson3 support and tests

Signed-off-by: salaboy <[email protected]>

* Renaming streaming subscription to "subscribeToTopic" (dapr#1626)

* Renaming streaming subscription to "subscribeToTopic".

Signed-off-by: Artur Ciocanu <[email protected]>

* Bring back subscribeToEvents for backward compatibility.

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix rebase conflicts

Signed-off-by: Artur Ciocanu <[email protected]>

* Add tests for deprecated events methods.

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Signed-off-by: salaboy <[email protected]>

* fixing new packages

Signed-off-by: salaboy <[email protected]>

* fixing sdk-tests

Signed-off-by: salaboy <[email protected]>

* updating test coverage

Signed-off-by: salaboy <[email protected]>

* missing package from example test

Signed-off-by: salaboy <[email protected]>

* aliging test junit version

Signed-off-by: salaboy <[email protected]>

* fixing spring boot 3 new packages

Signed-off-by: salaboy <[email protected]>

* increase test coverage for jackson3

Signed-off-by: salaboy <[email protected]>

---------

Signed-off-by: salaboy <[email protected]>
Signed-off-by: Artur Ciocanu <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
(cherry picked from commit 834b6b3)
Signed-off-by: Javier Aliaga <[email protected]>
javier-aliaga pushed a commit to javier-aliaga/java-sdk that referenced this pull request Feb 20, 2026
* initial restructure for spring-boot-4-autoconfigure

Signed-off-by: salaboy <[email protected]>

* updating sb4 with Jackson3 support and tests

Signed-off-by: salaboy <[email protected]>

* Renaming streaming subscription to "subscribeToTopic" (dapr#1626)

* Renaming streaming subscription to "subscribeToTopic".

Signed-off-by: Artur Ciocanu <[email protected]>

* Bring back subscribeToEvents for backward compatibility.

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix rebase conflicts

Signed-off-by: Artur Ciocanu <[email protected]>

* Add tests for deprecated events methods.

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Signed-off-by: salaboy <[email protected]>

* fixing new packages

Signed-off-by: salaboy <[email protected]>

* fixing sdk-tests

Signed-off-by: salaboy <[email protected]>

* updating test coverage

Signed-off-by: salaboy <[email protected]>

* missing package from example test

Signed-off-by: salaboy <[email protected]>

* aliging test junit version

Signed-off-by: salaboy <[email protected]>

* fixing spring boot 3 new packages

Signed-off-by: salaboy <[email protected]>

* increase test coverage for jackson3

Signed-off-by: salaboy <[email protected]>

---------

Signed-off-by: salaboy <[email protected]>
Signed-off-by: Artur Ciocanu <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
dapr-bot added a commit that referenced this pull request Feb 20, 2026
* Supporting Jackson3 DaprObjectSerializer (#1657)

* initial restructure for spring-boot-4-autoconfigure

Signed-off-by: salaboy <[email protected]>

* updating sb4 with Jackson3 support and tests

Signed-off-by: salaboy <[email protected]>

* Renaming streaming subscription to "subscribeToTopic" (#1626)

* Renaming streaming subscription to "subscribeToTopic".

Signed-off-by: Artur Ciocanu <[email protected]>

* Bring back subscribeToEvents for backward compatibility.

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix rebase conflicts

Signed-off-by: Artur Ciocanu <[email protected]>

* Add tests for deprecated events methods.

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Signed-off-by: salaboy <[email protected]>

* fixing new packages

Signed-off-by: salaboy <[email protected]>

* fixing sdk-tests

Signed-off-by: salaboy <[email protected]>

* updating test coverage

Signed-off-by: salaboy <[email protected]>

* missing package from example test

Signed-off-by: salaboy <[email protected]>

* aliging test junit version

Signed-off-by: salaboy <[email protected]>

* fixing spring boot 3 new packages

Signed-off-by: salaboy <[email protected]>

* increase test coverage for jackson3

Signed-off-by: salaboy <[email protected]>

---------

Signed-off-by: salaboy <[email protected]>
Signed-off-by: Artur Ciocanu <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>

* chore: Fix pom

Signed-off-by: Javier Aliaga <[email protected]>

---------

Signed-off-by: salaboy <[email protected]>
Signed-off-by: Artur Ciocanu <[email protected]>
Signed-off-by: Javier Aliaga <[email protected]>
Co-authored-by: salaboy <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Jackson3 with Spring Boot 4.x when using DefaultObjectSerializer

4 participants