Migrate to Kafka 4.1

Proprietary

Migrate applications to the latest Kafka 4.1 release. This includes updating dependencies to 4.1.x, migrating deprecated Admin API methods, updating Streams configuration properties, and removing deprecated broker properties.

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

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.0
  2. Upgrade Gradle or Maven dependency versions org.apache.kafka:*:4.1.x
  3. Migrate Admin.listConsumerGroups() to listGroups()
  4. Replace String literal with constant org.apache.kafka.streams.kstream.TimeWindowedDeserializer.WINDOW_SIZE_MS_CONFIG
  5. Replace String literal with constant org.apache.kafka.streams.kstream.TimeWindowedDeserializer.WINDOWED_INNER_DESERIALIZER_CLASS
  6. Remove deprecated Kafka property log.cleaner.enable
  7. Delete property by key log.cleaner.enable