Eclipse stores the compiler compliance level in .settings/org.eclipse.jdt.core.prefs. It would be nice if the Gradle could populate the file with the java.sourceCompatibility and java.targetCompatibility properties.
Otherwise Eclipse displays the following error:
"Java compiler level does not match the version of the installed Java project facet."
A newly created settings file looks like this (Eclipse 3.6):
#Thu Aug 26 11:10:30 CEST 2010
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.5
|