Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxLevel3

...

Checkout Kafka source

Generate Eclipse project files

...

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


Image Added


Info

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.

NOTE - update for Eclipse 3.7.x Oxygen, scala-ide 4.7.1RC3 and Scala 2.12

After generating the projects with

gradle -PscalaVersion=2.12
./gradlew -PscalaVersion=2.12 eclipse --refresh-dependencies

In Eclipse you need some manual tweaking to get rid of the build errors :

  • remove the duplicate java src path entry from  core 
  • remove all 'test' library entries in the projects : core/streams/streams-scala

then, break the build cycle

  • remove the `test-utils` project dependency from streams
  • add the test-utils source folders `test-utils/src/main/java` and `test-utils/src/test/java` to the streams project 


Intellij Setup

Install and prepare IntelliJ

  • Download and install IntelliJ;
  • Install the IntelliJ IDEA Scala Plugin (Preferences Menu Item File | Settings -> Plugins -> Browse Repositories -> Search for Scala);

Checkout Kafka source

Update libraries and generate IntelliJ project files

...