Skip to content

Upgrade Jackson from 2.19.0 to 3.0.4#13

Merged
bastianeicher merged 2 commits intomainfrom
copilot/update-jackson-to-3-0-4
Feb 15, 2026
Merged

Upgrade Jackson from 2.19.0 to 3.0.4#13
bastianeicher merged 2 commits intomainfrom
copilot/update-jackson-to-3-0-4

Conversation

Copy link
Contributor

Copilot AI commented Feb 15, 2026

Migrates Jackson serializer from 2.x to 3.0.4, addressing breaking changes in package structure and API.

Changes

Dependency updates (gradle/libs.versions.toml):

  • Version: 2.19.03.0.4
  • Maven group ID: com.fasterxml.jacksontools.jackson

API migration (JacksonJsonSerializer.kt):

  • Package imports: com.fasterxml.jackson.*tools.jackson.*
  • Mapper type: ObjectMapperJsonMapper (format-specific)
  • Construction: Mutable instance → immutable builder pattern
  • Kotlin module: .registerKotlinModule().addModule(kotlinModule())
// Before (Jackson 2.x)
private val mapper: ObjectMapper = ObjectMapper().registerKotlinModule()

// After (Jackson 3.x)
private val mapper: JsonMapper = JsonMapper.builder().addModule(kotlinModule()).build()

Follows Jackson 3.x migration guide.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Updated version in gradle/libs.versions.toml to 3.0.4
- Changed Maven group IDs from com.fasterxml.jackson to tools.jackson
- Updated imports from com.fasterxml.jackson to tools.jackson
- Migrated JacksonJsonSerializer to use Jackson 3.x API:
  - Changed ObjectMapper to JsonMapper
  - Updated Kotlin module registration to use kotlinModule() function
  - Used builder pattern for JsonMapper construction
- All tests pass successfully

Co-authored-by: bastianeicher <414366+bastianeicher@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Jackson serializer library to 3.0.4 Upgrade Jackson from 2.19.0 to 3.0.4 Feb 15, 2026
Copilot AI requested a review from bastianeicher February 15, 2026 12:07
@bastianeicher bastianeicher marked this pull request as ready for review February 15, 2026 12:25
@bastianeicher bastianeicher merged commit 3eb3cd7 into main Feb 15, 2026
3 checks passed
@bastianeicher bastianeicher deleted the copilot/update-jackson-to-3-0-4 branch February 15, 2026 12:26
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.

2 participants