Migrate to Kafka 4.1
ProprietaryMigrate 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. MigrateToKafka41mod run . --recipe= io. moderne. kafka. MigrateToKafka41Install 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.
- Migrate to Kafka 4.0
- Upgrade Gradle or Maven dependency versions
org.apache.kafka:*:4.1.x - Migrate
Admin.listConsumerGroups()tolistGroups() - Replace String literal with constant
org.apache.kafka.streams.kstream.TimeWindowedDeserializer.WINDOW_SIZE_MS_CONFIG - Replace String literal with constant
org.apache.kafka.streams.kstream.TimeWindowedDeserializer.WINDOWED_INNER_DESERIALIZER_CLASS - Remove deprecated Kafka property
log.cleaner.enable - Delete property by key
log.cleaner.enable