Gradle Buildship does not respect default JRE settings

buildship
eclipse

(Jan) #1

Hi,

i use Eclipse running on Java 10. Since Eclipse does not support Java 10 as JRE for projects yet (but can be run by it), Java 10 is not configured/available for my Java projects:

As you can see, only Java 8 should be available to any of my projects, and Java 10 should not. However, upon import of a project that has not specified targetCompatibility (which i cannot change right now, because it is not my project), Buildship puts the Java 10 System Library onto the Build Path:

<Image here, but new users cannot post more than one image>

Which of course breaks the project, because Eclipse does not support Java 10 as JRE for projects.
Expected behaviour: Buildship uses the configured default JRE (Java 8 in this case) if targetCompability is not specified.


(Jan) #2

Second image:
buildship2