Skip to content

Incompatibility with Jackson 3/ Spring Boot 4 #183

@Christian-Hovelmeyer

Description

@Christian-Hovelmeyer

I'm trying to upgrade to Spring Boot 4 which ships with Jackson 3, but this snapshot-testing framework is written and complied against Jackson 2.

There are breaking changes in Jackson 3 as it is a major version update. Most importantly, namespaces changed from 'com.fasterxml' to 'tools'. Class ObjectMapper now resides in tools.jackson.databind. So most classes using Jackson 2 API (except for those using jackson-annotations only) shouldn't compile any longer.

There is a way to use snapshot-testing with SB4/J3 by using a compatibility-dependency as described in https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-4.0-Migration-Guide#jackson-2-compatibility.
BUT as it reads there: "This module ships in a deprecated form and will be removed in a future release. It’s intended as a stop-gap for users that need more time to migrate to Jackson 3."

Without a version that is compatible with Spring Boot 4/ Jackson 3, this framework will not usable in the not so far future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions