Migrate Admin.listConsumerGroups() to listGroups()
ProprietaryMigrates the deprecated Admin.listConsumerGroups() method to listGroups() and updates related types for Kafka 4.1 compatibility.
io. moderne. kafka. MigrateAdminListConsumerGroupsmod run . --recipe= io. moderne. kafka. MigrateAdminListConsumerGroupsInstall 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.
- Change method name
org.apache.kafka.clients.admin.Admin listConsumerGroups(..)tolistGroups - Change method name
org.apache.kafka.clients.admin.AdminClient listConsumerGroups(..)tolistGroups - Change type
ConsumerGroupListingtoGroupListing - Change type
ListConsumerGroupsOptionstoListGroupsOptions - Change type
ListConsumerGroupsResulttoListGroupsResult