logbook icon indicating copy to clipboard operation
logbook copied to clipboard

Spring boot 4 migration

Open kasmarian opened this issue 1 month ago • 6 comments

Description

This pull request completes the Spring Boot 4 and Spring 7 migration for the Logbook project, bringing the entire codebase to the latest Spring ecosystem versions.

This is a BREAKING CHANGE because Logbook from this version will only support java 17 and higher. With this, support of spring boot 2.x will be discontinued.

Motivation and Context

Spring Boot 4.0.0 was released on 20.11.2025. This PR is aimed to allow Logbook clients to effortlessly migrate to the new Spring versions.

This PR is done based on https://github.com/zalando/logbook/pull/2146 (all the credits go to @bcaillard) Linked issues: https://github.com/zalando/logbook/issues/2177,

Types of changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [X] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • [X] My change requires a change to the documentation.
  • [X] I have updated the documentation accordingly.
  • [X] I have added tests to cover my changes.
  • [X] All commits are signed

kasmarian avatar Nov 25 '25 17:11 kasmarian

:+1:

ChristianLohmann avatar Nov 26 '25 09:11 ChristianLohmann

Is it possible to use Jackson 3 as Spring migration guide recommends. com.fasterxml.jackson.databind.ObjectMapper does not exist in Jackson 3, so the LogbookAutoConfiguration is not migrated properly.

martinkvasnicka-gj avatar Nov 27 '25 08:11 martinkvasnicka-gj

That's a fair callout. We'd like to keep the compatibility with Jackson 2 as well. Would need to experiment a bit to understand how to make it work for both types of clients, as even Spring Boot 4 will keep the support with Jackson 2. I may open a separate PR for this piece

kasmarian avatar Nov 27 '25 15:11 kasmarian

Hi @kasmarian, is there any ETA for the 4.0.0 release?

andron3000 avatar Dec 01 '25 19:12 andron3000

No fixed ETA, but this is the main focus right now for Logbook

kasmarian avatar Dec 01 '25 21:12 kasmarian

Do you have any planned release date for spring boot 4 compatibility? Migrating to spring boot 4 fails due to logbook deprecated api usage (org.springframework.boot.autoconfigure.web.reactive.function.client.ReactorNettyHttpClientMapper). Waiting for you guys for spring migration :)

orcunbalcilar avatar Dec 10 '25 11:12 orcunbalcilar

We still have a couple of things to figure out, but I think we could do an RC release this week arleady with this PR, and we'll do another RC with jackson related fixes (and then more depending on how many issues we'll find on the way before we do the actual 4.0).

kasmarian avatar Dec 16 '25 15:12 kasmarian

👍

kasmarian avatar Dec 16 '25 15:12 kasmarian