Description
The gradle-generated Eclipse Scala project for Kafka core has a
classpath defined as :
<classpathentry kind="src" path="src/main/scala"/> <classpathentry kind="src" path="src/test/scala"/> <classpathentry kind="src" path="src/test/resources"/>
because of how the source files are for tests are structured, code navigation / running unit tests fails. The correct structure should be instead :
<classpathentry kind="src" path="src/main/scala"/> <classpathentry excluding="integration/|other/|unit/" kind="src" path="src/test/scala"/> <classpathentry kind="src" path="src/test/scala/other"/> <classpathentry kind="src" path="src/test/scala/integration"/> <classpathentry kind="src" path="src/test/scala/unit"/> <classpathentry kind="src" path="src/test/resources"/>
Moreover, the classpath included as libraries core/build/test and core/build/resources
which should not be there as the eclipse classes are not generated under build
Attachments
Issue Links
- supercedes
-
KAFKA-4604 Gradle Eclipse plugin creates projects for non project subfolders
- Resolved
- links to
- mentioned in
-
Page Loading...