Migrate to Kafka 4.2

Proprietary

Migrate applications to the latest Kafka 4.2 release. This includes updating dependencies to 4.2.x, moving Kafka Streams to the new CloseOptions and exception handler Response APIs, and renaming deprecated configuration.

io.moderne.kafka.MigrateToKafka42
mod run . --recipe=io.moderne.kafka.MigrateToKafka42

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. Migrate to Kafka 4.1
  2. Upgrade Gradle or Maven dependency versions org.apache.kafka:*:4.2.x
  3. Migrate KafkaStreams.CloseOptions to org.apache.kafka.streams.CloseOptions
  4. Migrate Kafka Streams exception handlers to the Response API
  5. Replace constant with another constant
  6. Change property key
  7. Replace String literal