mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 20:19:06 +00:00
spring-kafka has an api dependency on spring-tx, placing the latter on the compile classpath of the former's consumers. Additionally, when spring.kafka.producer.transaction-id-prefix is set, the Kafka auto-configuration will define a Kafka-based transaction manager. However, the transaction manager won't be used without some configuration from the user as there's no dependency on spring-boot-transaction and, therefore, no auto-configuration of @EnableTransactionManagement. This commit adds a spring-boot-transaction dependency to spring-boot-kafka, aligning it with the spring-tx dependency that spring-kafka already has. Fixes gh-48880