title: How to recompile with -Xlint:deprecation
body: <p>I don't use Android Studio but I build everything from the command line using <code>build.gradle</code>. I generate a Lint report like this:</p>
  
  <pre><code>./gradlew lint
  </code></pre>
  
  <p>This correctly generates a Lint report but it also says this:</p>
  
  <pre><code>Note: MyActivity.java uses or overrides a deprecated API.
  Note: Recompile with -Xlint:deprecation for details.
  </code></pre>
  
  <p>This makes me wonder how I can do that? I've tried the following:</p>
  
  <pre><code>./gradlew lint -Xlint:deprecation
  </code></pre>
  
  <p>But it doesn't work. It says:</p>
  
  <pre><code>Problem configuring task :app:lint from command line.
  Unknown command-line option '-X'.
  </code></pre>
  
  <p>So how can I pass <code>-Xlint:deprecation</code> to Lint via gradle?</p>