feat: migrate to jackson 3#5031
Conversation
7633f49 to
7b93974
Compare
changes: - update maven-compiler-plugin to latest 3.14.1 - update maven-javadoc-plugin to latest 3.12.0 - update jacoco-maven-plugin to latest 0.8.14 - set maven.compiler.release to 17 - set source to 17 and update link to javadoc for maven-javadoc-plugin configuration - set java-version to 17 in github workflows - set java version to 17 in swagger-gradle-plugin
0de7198 to
f60ee1e
Compare
|
I have removed many of the changes associated with java 17, so the PR is now much smaller. @cbot59, thanks for the comment! JsonMapper is a descendant of ObjectMapper, so |
|
Hey everyone -- thanks to @vpelikh, we now have Jackson 3 and Java 17 support. But I didn't want to wait, so I have it available here! His branch is available as a dependency, just add this to your build.gradle file or pom.xml equivalent: |
No, it doesn't, because the |
|
Any update on this? |
|
Any chance that a maintainer takes a look here? |
Yes, I’ve had this workaround in use in production for the last 2 weeks: |
This does not work for me: |
|
@daniel-kmiecik @Mattias-Sehlstedt @ewaostrowska, hey! I see you've done the last commits to this repository. Can anyone check out this PR? |
|
Hi @vpelikh, I am only a contributor, so I can unfortunately not do anything to help. But the other two are maintainers and will hopefully assist you. |
|
@MichakrawSB Is there any ETA for this feature? Can we please prioritize this? |
|
It would be really great if you could prioritize this 🙏 |
|
Is this PR not progressing? |
|
Any information on this yet? Will this also make it work with the newest springboot and java 26? |
|
I'm running the current version with latest Spring Boot/Jackson 3 on Java 26 without issues. |
Yes, it works. However, you probably need to add Jackson 2 compatibility support using the deprecated classes. It does work, but it is not an ideal solution. |
|
Is there any plan on merging this or maybe adding this to the next major version instead? |
|
Going to be forced to ditch swagger and find another solution soon 😅
|
|
Hey, any update on this? this has been open since january 1st and there’s a lot of interest here compared to most PRs, but it’s still just sitting in “review required” while multiple releases went out is this actually planned to be merged anytime soon or is it blocked on something? |
No, you don't. Just upgrade Spring Boot and migrate your code to Jackson 3. As long as swagger-core depends on Jackson 2, they will pull it in and just use it. I wonder how many people give up before even trying to do the update. |
I suspect you might not have used certain annotations from the Or you may have added both Jackson 2 and Jackson 3 annotations at the same time during the migration. For example: @tools.jackson.databind.annotation.JsonNaming(tools.jackson.databind.PropertyNamingStrategies.SnakeCaseStrategy.class)
@com.fasterxml.jackson.databind.annotation.JsonNaming(com.fasterxml.jackson.databind.PropertyNamingStrategies.SnakeCaseStrategy.class)
public class SampleVO {If that's the case, it's really a nagging annoyance. |
|
Good point @zqq90, I'm indeed not using any of those. |

Description
This PR consists of two commits:
Fixes: #4991
Type of Change
Checklist
Screenshots / Additional Context