Eclipse plugin fixes build output directory

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:

Is there a way to override this?