Preserve Reactor HTTP client defaults when upgrading to Spring Boot 4.1

Proprietary

Spring Boot 4.1 adds proxyWithSystemProperties() to the Reactor HTTP client defaults. Insert .withHttpClientDefaults(client -> client.compress(true)) immediately after ClientHttpRequestFactoryBuilder.reactor() or ClientHttpConnectorBuilder.reactor() to preserve the previous compression-only defaults. Existing explicit defaults and subsequent customizers are preserved. Use this recipe alongside an upgrade from Spring Boot below 4.1 to 4.1 or later, where withHttpClientDefaults(..) is available.

io.moderne.java.spring.boot4.AddWithHttpClientDefaultsToReactorBuilders
mod run . --recipe=io.moderne.java.spring.boot4.AddWithHttpClientDefaultsToReactorBuilders

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.