Migrate to Apache Kafka Native container

MSAL

Replace confluentinc/cp-kafka with the much faster apache/kafka-native image and migrate from org.testcontainers.containers.KafkaContainer to org.testcontainers.kafka.KafkaContainer.

org.openrewrite.java.testing.testcontainers.MigrateToKafkaNative
mod run . --recipe=org.openrewrite.java.testing.testcontainers.MigrateToKafkaNative

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. Replace container image name
  2. Change type org.testcontainers.containers.KafkaContainer to org.testcontainers.kafka.KafkaContainer