Skip to content

Add recipes for Jackson 3 migration in Spring Kafka 4#901

Merged
timtebeek merged 9 commits intoopenrewrite:mainfrom
jjank:spring-kafka-40
Jan 15, 2026
Merged

Add recipes for Jackson 3 migration in Spring Kafka 4#901
timtebeek merged 9 commits intoopenrewrite:mainfrom
jjank:spring-kafka-40

Conversation

@jjank
Copy link
Contributor

@jjank jjank commented Jan 15, 2026

What's changed?

Anything in particular you'd like reviewers to focus on?

I "plugged" this into the Boot 4 migrations. But it could - in theory - also be part of the Spring Framework 7 migration since Spring Kafka has no direct dependency to Spring Boot.

Anyone you would like to review specifically?

I'm not terribly familiar with the "new" typetables stuff - I hope I got the parser classpath right

Any additional context

There's more Jackson-related deprecations that are similar drop-in-replacements in Spring-Kafka. But I wanted to focus on the specific classes pointed out in the documentation first.

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

Copy link
Member

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @jjank ! I've made some small adjustments as can be seen in the commits:

  • moved the inclusion into spring framework 7, as you've indicated as well; fit in nicely with the Jackson3 included there.
  • turns out we only needed one new testParserClasspath entry, since tests compile against the old dependencies, not the new. iff you had been using .classpathFromResources in src/main/java then we would have had use for parserClasspath.

@github-project-automation github-project-automation bot moved this from In Progress to Ready to Review in OpenRewrite Jan 15, 2026
@timtebeek timtebeek merged commit a33637b into openrewrite:main Jan 15, 2026
2 checks passed
@github-project-automation github-project-automation bot moved this from Ready to Review to Done in OpenRewrite Jan 15, 2026
@greg-at-moderne greg-at-moderne changed the title Add recipes for Jackson 3 migration in Spring Kakfa 4 Add recipes for Jackson 3 migration in Spring Kafka 4 Jan 15, 2026
@jjank jjank deleted the spring-kafka-40 branch January 15, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants