THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
- Eclipse-Scala-Gradle-Git Developement Environment Setup - 01/17/20152015
Table of Contents | ||
---|---|---|
|
...
Checkout Kafka source
- git clone http://git-wip-us.apache.org/repos/asf/git@github.com:apache/kafka.git <kafka.project.dir>
Generate Eclipse project files
...
You should see the projects you have imported. For running unit tests and Kafka broker refer to the previous section.
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 |
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
- git clone http://git-wip-us.apache.org/repos/asfgit clone git@github.com:apache/kafka.git <kafka.project.dir>
Update libraries and generate IntelliJ project files
...