Skip to content

Comments

Migrate jackson 2.x to 3.x#746

Open
vmillet-dev wants to merge 1 commit intoauth0:masterfrom
vmillet-dev:migrate-jackson-2.x-to-3.x
Open

Migrate jackson 2.x to 3.x#746
vmillet-dev wants to merge 1 commit intoauth0:masterfrom
vmillet-dev:migrate-jackson-2.x-to-3.x

Conversation

@vmillet-dev
Copy link

Disclaimer

Moving to jackson 3 (and implicitly java 17) are maybe a real breaking change, I don't know the policy of maintainers about older java versions compatibilities, but well, I did this work for myself in first place, so at least you can take a look

Changes

  • Bump java baseline to 17 in build.gradle + CI files (the minimum supported java version for jackson 3.x)
  • Update gradle to 7.x (for java 17 support)
  • Remove Java 8/11 tests because these versions are no longer supported by Jackson3.

From jackson3 migration guide (link bellow):

  • Update Java package from com.fasterxml.jackson.[core/databind] -> tools.jackson.[core/databind]
  • Replace removed ObjectCodec by the right implementation of ObjectReadContext/ObjectWriteContext interfaces (which are DeserializationContext and SerializationContext)
  • JsonProcessingException -> JacksonException
  • JsonGenerator.writeObject() -> JsonGenerator.writePOJO()
  • JsonGenerator.writeFieldName() -> JsonGenerator.writeName()
  • JsonNode.asText() -> JsonNode.asString()
  • JsonNode.isTextual() -> JsonNode.isString()
  • JsonParser.getCodec() -> JsonParser.objectReadContext()

References

Checklist

@vmillet-dev vmillet-dev requested a review from a team as a code owner February 21, 2026 23:06
@vmillet-dev vmillet-dev force-pushed the migrate-jackson-2.x-to-3.x branch from 908eee2 to 529fda5 Compare February 21, 2026 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant