title: How to add java compiler options when compiling with Android Gradle Plugin?
body: <p>I have a <code>build.gradle</code> file with <code>dependencies { classpath 'com.android.tools.build:gradle:0.13.3'}</code> and <code>apply plugin: 'com.android.application'</code>.</p>
  
  <p>When I do a debug build I get:</p>
  
  <pre><code>gradle clean assembleDebug
  :myapp:preBuild
  (...)
  :myapp:compileDebugJava
  Note: C:\path\to\MyClass.java uses unchecked or unsafe operations.
  Note: Recompile with -Xlint:unchecked for details.
  
  :myapp:preDexDebug
  (...)
  :myapp:assembleDebug
  
  BUILD SUCCESSFUL
  </code></pre>
  
  <p>How can I add the <code>-Xlint:unchecked</code> to the underlying task? <a href="http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Java-Compilation-options">Gradle Plugin User Guide on Java compilation options</a> is unhelpful. </p>