codegenomeproject
Search
MarketplaceModules
PackagesCLIMCP
Sign in
  1. Marketplace
  2. Kafka
  3. Migrate client and Admin APIs removed in Kafka 4.0

Migrate client and Admin APIs removed in Kafka 4.0

Proprietary

Replaces client, Admin and security APIs that Kafka 4.0 removed with the replacements the Kafka 4.0 upgrade notes name.

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

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.

Recipe
  1. Change method name org.apache.kafka.clients.admin.DescribeTopicsResult all() to allTopicNames
  2. Change method name org.apache.kafka.clients.admin.DeleteTopicsResult values() to topicNameValues
  3. Change method name org.apache.kafka.clients.consumer.MockConsumer setException(org.apache.kafka.common.KafkaException) to setPollException
  4. Change type NotLeaderForPartitionException to NotLeaderOrFollowerException
  5. Change type org.apache.kafka.common.security.oauthbearer.secured.OAuthBearerLoginCallbackHandler to org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginCallbackHandler
  6. Change type org.apache.kafka.common.security.oauthbearer.secured.OAuthBearerValidatorCallbackHandler to org.apache.kafka.common.security.oauthbearer.OAuthBearerValidatorCallbackHandler
  7. Replace String literal
  8. Replace String literal
© Moderne, 2026
Recipe indexPrivacyTerms