title: Eclipse build overrites jdk version preferences
body: <p>I have Eclipse OpenJDK11+Gradle2.1.1 project.</p>
  
  <p>I selected 11(BETA) as Java Compiler version on the project property.
  That is .settings\org.eclipse.jdt.core.prefs is</p>
  
  <pre><code>org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
  org.eclipse.jdt.core.compiler.compliance=11
  org.eclipse.jdt.core.compiler.source=11
  </code></pre>
  
  <p>But I edited build.gradle and saved it then the property changed to 1.8.
  .settings\org.eclipse.jdt.core.prefs:</p>
  
  <pre><code>org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
  org.eclipse.jdt.core.compiler.compliance=1.8
  org.eclipse.jdt.core.compiler.source=1.8
  </code></pre>
  
  <p>And this Eclipse warning message appeared</p>
  
  <pre><code>The compiler compliance specified is 1.8 but a JRE 11 is used   
  </code></pre>
  
  <p>I tried to add this to build.gradle. But it didn't work.</p>
  
  <pre><code>apply plugin: 'eclipse'
  eclipse.jdt.file.withProperties { props -&gt;
      props.setProperty('org.eclipse.jdt.core.compiler.codegen.targetPlatform', '11')
      props.setProperty('org.eclipse.jdt.core.compiler.source', '11')
      props.setProperty('org.eclipse.jdt.core.compiler.compliance', '11')
  }
  </code></pre>
  
  <p>How can I fix JDK version eternally?</p>