Migrate to Spring Kafka 3.0

MSAL

Migrate applications to the latest Spring Kafka 3.0 release.

org.openrewrite.java.spring.kafka.UpgradeSpringKafka_3_0
mod run . --recipe=org.openrewrite.java.spring.kafka.UpgradeSpringKafka_3_0

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

Recipe list

It runs these recipes, in this order.

  1. Upgrade Gradle or Maven dependency versions org.springframework.kafka:spring-kafka:3.0.x
  2. Change KafkaOperations.send* return type to CompletableFuture
  3. Use Duration in KafkaTestUtils
  4. Change type KafkaOperations2 to KafkaOperations
  5. Remove KafkaOperations.usingCompletableFuture()
  6. Replace constant with another constant
  7. Replace constant with another constant
  8. Replace constant with another constant
  9. Replace constant with another constant
  10. Migrate deprecated Spring Kafka error handlers