I have to use kafka 2.11 in my project and for this I have to include the maven dependency in my project. What code should I should add in my pom.xml file to use kafka 2.11 dependency in my project.
The maven dependency for kafka 2.11 is given below:
<dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka_2.11</artifactId> <version>1.0.0</version> </dependency>
Add the above code in your pom.xml file of your project.
If you are using Gradle then use following code:
compile group: 'org.apache.kafka', name: 'kafka_2.11', version: '1.0.0'