[GRADLE-2588] Scala plugin eliminates javabuilder from eclipse .project file Created: 04/Dec/12 Updated: 21/Jan/13 Resolved: 21/Jan/13 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 1.3 |
Fix Version/s: | None |
Type: | Bug | ||
Reporter: | Andrew Declercq | Assignee: | Peter Niederwieser |
Resolution: | Cannot Reproduce | Votes: | 0 |
Description |
When both the scala and java plugins are applied, only the scalabuilder is added to the eclipse .project file generated by the eclipse task. This must be addressed manually in order for eclipse to be able to build. INCORRECT VERSION: CORRECT VERSION: |
Comments |
Comment by Peter Niederwieser [ 11/Dec/12 ] |
I cannot reproduce this. What I'm observing is that a mixed Java/Scala project works fine with just the Scala builder, and stops working once a Java builder is added. The "Scala Project" wizard also just adds a Scala builder. Tested with Gradle 1.3 and Scala IDE 2.1-m2. |
Comment by Andrew Declercq [ 16/Jan/13 ] |
Could you tell me how you setup your test? In our project, the java files are in src/main/java and the scala files are in src/main/scala, Thanks |
Comment by Peter Niederwieser [ 21/Jan/13 ] |
If you keep Java/Scala sources with bidirectional dependencies in separate source roots, you'll have to declare `src/main/java` as a Scala source dir in the Gradle build script, and remove it as a Java source dir. However, this shouldn't have an influence on Eclipse. I'll close this issue because I think it's correct to only add a Scala builder. If you disagree, please open another issue and attach a self-contained project that allows to reproduce the problem. |