Use kafkaAwareTransactionManager setter

Proprietary

Replace deprecated ContainerProperties#setTransactionManager(org.springframework.transaction.PlatformTransactionManager) method with ContainerProperties#setKafkaAwareTransactionManager(org.springframework.kafka.transaction.KafkaAwareTransactionManager). The method will be replaced only if its argument has the type KafkaAwareTransactionManager.

io.moderne.java.spring.boot3.ReplaceKafkaTransactionManagerSetter
mod run . --recipe=io.moderne.java.spring.boot3.ReplaceKafkaTransactionManagerSetter

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.