title: After upgrading to Gradle 2.0: Could not find property 'Compile' on root project
body: <p>To avoid warnings regarding special characters when building my Java source code, I put this line in my <code>gradle.build</code> which worked fine before upgrading to Gradle 2.0:</p>
  
  <pre><code>tasks.withType(Compile) { options.encoding = "UTF-8" }
  </code></pre>
  
  <p>After upgrading, this fails with the following error:</p>
  
  <pre><code>Could not find property 'Compile' on root project
  </code></pre>
  
  <p>How can I fix that?</p>