Gradle incorrectly sets the compiler compliance to sourceCompatibility when generating the .settings/org.eclipse.jdt.core.prefs file. The compiler compliance should be set to the targetCompatibility or possibly it should have it’s own Gradle property.
The 3 values are only valid if source <= target <= compliance.