How to include the particular version of spring kafka. Kafka version dependency is 2.5.14 imported by the starter parent. But I want to override it with 2.6.10 version How can I do it?
This is my Spring Boot starter
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.12.RELEASE</version>
</parent>
Kafka version dependency is 2.5.14 .
<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka</artifactId>
</dependency>
in your project pom.xml
file override spring-kafka.version
property value to give desired version.
And if you want to override kafka
libraries version in the same way you can override kafka.version
property value.
<properties>
<spring-kafka.version><!-- desired spring-kafka version--></spring-kafka.version>
<kafka.version><!-- desired kafka version--></kafka.version>
</properties>