Eclipse plugin fixes build output directory

eclipse
(Frank Taylor) #1

Our build has recently switched from Gradle 3.5 to Gradle 4.6.

We used to define the eclipse plugin classpath defaultOutputDir=build-eclipse and all the intermediates would go into “project/build-eclipse/”. Super easy to create a .gitignore rule.

With 4.6, we now get all the intermediates in “project/bin/” directory. This causes problems as we have some legitimate “bin/” directories so creating a .gitignore rule is harder.

I can see from the gradle source that “bin/” looks like its hardcoded into: https://github.com/gradle/gradle/blob/v4.5.0/subprojects/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/internal/SourceFoldersCreator.java

Is there a way to override this?

0 Likes