Migrate Admin.listConsumerGroups() to listGroups()

Proprietary

Migrates the deprecated Admin.listConsumerGroups() method to listGroups() and updates related types for Kafka 4.1 compatibility.

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

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. Change method name org.apache.kafka.clients.admin.Admin listConsumerGroups(..) to listGroups
  2. Change method name org.apache.kafka.clients.admin.AdminClient listConsumerGroups(..) to listGroups
  3. Change type ConsumerGroupListing to GroupListing
  4. Change type ListConsumerGroupsOptions to ListGroupsOptions
  5. Change type ListConsumerGroupsResult to ListGroupsResult