Migrate Consumer.committed(TopicPartition) to committed(Set<TopicPartition>)

Proprietary

Migrates from the removed Consumer.committed(TopicPartition) to committed(Set<TopicPartition>) for Kafka 4.0 compatibility. The partition is wrapped in Collections.singleton(), and where the result is used, the returned map is read with .get(partition).

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

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