Repository navigation
Update to jackson 3 - #5314
Update to jackson 3#5314
Conversation
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
Signed-off-by: Vasily Pelikh <[email protected]>
039bdf8 to
cddcc71
Compare
cddcc71 to
82fd0cf
Compare
|
@vpelikh given the scope and significance of these changes, we encourage everyone to review the PR and share any feedback or concerns you might have |
|
The PR itself looks fine to me. Moving to Java 17 and Jackson 3 is the right direction. Thanks for working on this. Before a new major release, I’d like to raise a few things that affect the ecosystem and how quickly downstream projects can adopt it. I maintain a fork of 1. Porting changes from my fork In my These forks were made only to support Jackson 3, so after the new major version is released I and all users will be able to switch back to upstream. 2. Testing with springdoc-openapi It would also be good if @bnasslahsen could try a snapshot/milestone of the major version with 3. Jakarta EE Java 17 + Jakarta is a natural opportunity for a major version. In my fork the 4.0.x line is already fully migrated to Jakarta EE 11 ( 4. JAX-RS 2 modules Together with the previous point, it would be worth deciding what to do with the 5. swagger-java17-support The functionality from |
|
Hi @vpelikh, the changes that you have made seem to align a lot with functionality that I have been interested in a long time. E.g., test illustrating the background https://github.com/swagger-api/swagger-core/pull/5030issue with the springdoc polymorphic converter springdoc/springdoc-openapi#2915, investigation of how to make swagger-core provide an extension point to switch between One thing I suspect is that vpelikh#25 might be problematic due to the recursive relation that a combination of So if you aim to create a separate issue for it, then please ping me in it, since I would very much like to contribute to similar functionality as well. |
…akeYAML dependency
2697b94 to
61a9ae7
Compare
Pull Request
Description
This pull request upgrades the project to use Java 17 as the minimum required version and migrates the codebase from the legacy
com.fasterxml.jacksonJackson 2 library to the newtools.jacksonlibrary (Jackson 3.x). It also updates the GitHub Actions workflows to use newer Java versions, updates dependencies, and refactors serializers to match the new Jackson API. These changes modernize the codebase, improve compatibility, and ensure ongoing support.Java Version and Build System Updates
README.md,.github/workflows/codeql-analysis.yml,.github/workflows/maven.yml,.github/workflows/maven-pulls.yml,.github/workflows/prepare-release.yml,.github/workflows/release.yml)Jackson 3.x Migration
com.fasterxml.jacksonwithtools.jacksonthroughout the codebase to support Jackson 3.x, and updated dependency group IDs and versions inpom.xml. (modules/swagger-core/pom.xml, multiple Java files)TypeFactory.createDefaultInstance(),serializationConfig(), and updated serializer and introspection methods to match Jackson 3.x conventions. (ModelConverters.java,AbstractModelConverter.java)Serializer Refactoring
tools.jackson.databind.ValueSerializerinstead of the oldJsonSerializer, and updated method signatures and logic to use the new Jackson 3.x serialization API. (ApiResponsesSerializer.java,CallbackSerializer.java,ExampleSerializer.java,MediaTypeSerializer.java)Dependency and Compatibility Updates
tools.jackson.*inpom.xml. Also addedjakarta.annotation-apias a provided dependency. (modules/swagger-core/pom.xml)jakarta.xml.bind-api, likely to use the version managed by a parent or BOM. (modules/swagger-core/pom.xml)Minor Code Adjustments
tools.jackson.core.JacksonExceptioninstead ofIOExceptionfor Jackson serialization errors. (SpecFilter.java, serializer classes)Fixes: #4991
Type of Change
Checklist
Screenshots / Additional Context