title: Gradle can not find 'lint' as dependency for custom task
body: <p>I want to create a simple, easy-to-use Gradle task that runs everything I expect the continuous integration server to run. For now, my app/build.gradle file contains the following code (rest omitted):</p>
  
  <pre><code>task continuousIntegrationDebug(dependsOn: [assembleDebug, lint, runCheckstyle, runPmd, runFindbugs]) {
  }
  </code></pre>
  
  <p>Sadly, Gradle complains that it can not find lint (same for lintDebug and lintRelease):</p>
  
  <pre><code>A problem occurred evaluating project ':app'.
  &gt; Could not find property 'lint' on project ':app'.
  </code></pre>
  
  <p>Interestingly, the following line works when I run a check:</p>
  
  <pre><code>check.dependsOn 'lint'
  </code></pre>
  
  <p>And the following external call works, too (from project root):</p>
  
  <pre><code>./gradlew app:lint
  </code></pre>
  
  <p>What did I forget? I am using version <code>com.android.tools.build:gradle:1.1.0</code> and the latest versions of build tools etc.</p>
  
  <p>Also, I had to run pmd, checkstyle and findbugs externally first before I could run the task itself (were not installed before). How can I ensure they always get downloaded the first time the Gradle files get synced in Android Studio?</p>