title: Gradle testCompile with mockito doesn't find the package
body: <p>When I add</p>
  
  <pre><code>dependencies {
      testCompile 'org.mockito:mockito-all:1.9.5'
  }
  </code></pre>
  
  <p>to my <code>build.gradle</code>, the JAR file gets downloaded, but the compilation fails with</p>
  
  <pre><code>error: package org.mockito does not exist
  </code></pre>
  
  <p>and a bunch of follow-up errors. When I replace <code>testCompile</code> by <code>compile</code>, it works. I'm still rather beginner concerning Gradle, but <code>testCompile</code> sound just right to me. Moreover,</p>
  
  <pre><code>testCompile 'junit:junit:4.+'
  testCompile 'com.google.guava:guava-testlib:18.+'
  </code></pre>
  
  <p>work just fine. Can someone explain what's going on here?</p>