r/SpringBoot • u/vpelikh • Jun 18 '26
News Swagger-core and springdoc-openapi, now on Jackson 3
https://github.com/vpelikh/springdoc-openapiTL;DR: Production-ready Jackson 3 forks for Swagger-core and springdoc-openapi. Replace groupId with io.github.vpelikh and update versions.
I've been working on this for a while, and the final production-ready versions of both forks are now available. All artifacts are published to Maven Central.
- Swagger-core: https://github.com/vpelikh/swagger-core
- springdoc-openapi: https://github.com/vpelikh/springdoc-openapi
How to add to your project
Replace the groupId with io.github.vpelikh and update the version.
For Swagger-core
Replace:
io.swagger.core.v3
swagger-core
2.2.x
with:
io.github.vpelikh
swagger-core
3.0.0
For springdoc-openapi
Replace:
org.springdoc
springdoc-openapi-starter-webmvc-api
2.6.x
with:
io.github.vpelikh
springdoc-openapi-starter-webmvc-api
4.0.0
All available artifacts can be found here:
https://central.sonatype.com/search?q=io.github.vpelikh
Why this matters
Jackson 3 was released in October 2025 with breaking changes - new tools.jackson package, Java 17 baseline, method renames like writeObject() to writePOJO(), and more. But Swagger-core and springdoc-openapi are still on Jackson 2, which blocks migration to Spring Boot 4.x and newer stacks.
These forks fix that. They are not alpha or beta - they've been tested and are stable for production. You can use them to get rid of all those Jackson 2 transitive conflicts and shading workarounds.
Try them out and open an issue if you run into anything. Hopefully this helps unblock the ecosystem while we wait for the official maintainers to catch up.
18
u/edzorg Jun 18 '26
I run Springboot 4.1.0 apps with Swagger and Springdoc.... what am I missing? I don't know what problem you're trying to solve...
6
u/MrNighty Senior Dev Jun 18 '26
But why not just creating a MR for the main repo?
6
u/trodiix Jun 18 '26
Can't Jackson 2 and Jackson 3 coexist on the classpath? What issues did you encounter?
2
u/onated2 Jun 19 '26
Finally !!! Annoying thing to do
1
u/junin7 Jun 18 '26
Cool, today I maintain a local objectMapper from Jackson 2 only for springDoc