Skip to content

Add a metrics-jackson3 module - metrics-json but dependent on jackson 3#5101

Merged
joschi merged 1 commit intodropwizard:release/4.2.xfrom
cunningt:jackson3
Jan 15, 2026
Merged

Add a metrics-jackson3 module - metrics-json but dependent on jackson 3#5101
joschi merged 1 commit intodropwizard:release/4.2.xfrom
cunningt:jackson3

Conversation

@cunningt
Copy link
Contributor

#5100

https://github.com/FasterXML/jackson/blob/main/jackson3/MIGRATING_TO_JACKSON_3.md

Add a metrics-jackson3 module (metrics-json but dependent on jackson 3 and with the API changes required by jackson 3 migration). PR builds cleanly on my machine, the two tests in metrics-jackson3 pass.

I see two untracked files after building (metrics-benchmarks/dependency-reduced-pom.xml, metrics-jcstress/dependency-reduced-pom.xml) but I don't see them checked into 4.2.x branch. Should I add them? Should dependency-reduced-pom.xml be added to .gitignore?

@cunningt cunningt requested review from a team as code owners January 14, 2026 14:11
@github-actions github-actions bot added this to the 4.2.38 milestone Jan 14, 2026
@joschi joschi added the feature label Jan 14, 2026
@joschi joschi linked an issue Jan 14, 2026 that may be closed by this pull request
@cunningt
Copy link
Contributor Author

@joschi I think the JDK11 build is failing because the baseline JDK for Jackson 3 is 17 - should I add a profile here to enable/disable the module based on JDK building it?

Copy link
Member

Choose a reason for hiding this comment

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

issue: Jackson 3.x is using JDK 17 as its baseline, so the module needs to be excluded from builds with lower JDK versions.

Take a look at the metrics-jetty12 module for an example how to do this.

@joschi
Copy link
Member

joschi commented Jan 14, 2026

I think the JDK11 build is failing because the baseline JDK for Jackson 3 is 17 - should I add a profile here to enable/disable the module based on JDK building it?

@cunningt Yes, please. See my comment in the code. 😄

@joschi
Copy link
Member

joschi commented Jan 15, 2026

@cunningt Thanks for your contribution!

@joschi joschi merged commit 9324e84 into dropwizard:release/4.2.x Jan 15, 2026
4 checks passed
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.

Upgrade to Jackson 3?

2 participants