Migrate KStreamBuilder to StreamsBuilder

Proprietary

Kafka 2.0 removed KStreamBuilder, deprecated in 1.0 in favor of StreamsBuilder (KIP-120). Serdes move into Consumed.with(..), a store name into Materialized.as(..), several topics into a list, and new KafkaStreams(builder, ..) takes builder.build(). Overloads with an AutoOffsetReset, a TimestampExtractor or a StateStoreSupplier, and the methods StreamsBuilder lacks, are left for a person.

io.moderne.kafka.streams.MigrateKStreamBuilderToStreamsBuilder
mod run . --recipe=io.moderne.kafka.streams.MigrateKStreamBuilderToStreamsBuilder

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 type KStreamBuilder to StreamsBuilder