Eclipse setup

Install and prepare Eclipse

Checkout Kafka source

Generate Eclipse project files

Create the Eclipse workspace

You should see the projects you have imported. For running unit tests and Kafka broker refer to the previous section.

You will need regenerate the projects and refresh eclipse every time there is a change in the projects dependencies. In other words, you need to run ./gradlew eclipse and refresh eclipse.

Intellij Setup

Install and prepare IntelliJ

Checkout Kafka source

Currently IntelliJ Scala Plugin doesn't support 2.8.0 Scala, so to use IntelliJ you need to temporary upgrade Kafka's Scala version by editing gradle.properties scalaVersion to 2.9.2.

Also remove this file core/src/main/scala/kafka/utils/Annotations_2.9+.scala as it clashes with the Scala Plugin.

Note that if you want to switch back to perform any gradle tasks from the console, you need to revert the deletion of the Annotations_2.9+.scala file, and also set the environment variable SCALA_VERSION to 2.9.2 for any of the kafka shell script to work.

Update libraries and generate IntelliJ project files

Create IntelliJ workspace