[GRADLE-1132] Gradle should generate .settings/org.eclipse.jdt.core.prefs Created: 26/Aug/10  Updated: 04/Jan/13  Resolved: 24/Nov/10

Status: Resolved
Project: Gradle
Affects Version/s: 0.9
Fix Version/s: 0.9-rc-3

Type: Improvement
Reporter: Felix Gnass Assignee: Hans Dockter
Resolution: Fixed Votes: 1


 Description   

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



 Comments   
Comment by Chris Beams [ 11/Nov/10 ]

Thanks so much Adam – this resolution was perfectly timed.

Generated at Wed Jun 30 11:47:44 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.