Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-1132

Gradle should generate .settings/org.eclipse.jdt.core.prefs

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 0.9-rc-3

      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

        Attachments

          Activity

            People

            Assignee:
            hans_d Hans Dockter
            Reporter:
            fgnass Felix Gnass
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: