title: How to download dependencies in gradle
body: <p>I have a custom compile task.</p>
  
  <pre><code>task compileSpeedTest(type: JavaCompile) {
      classpath = files('build')
      source = fileTree('src/test/java/speed')
      destinationDir = file('bin')
  }
  </code></pre>
  
  <p>Gradle doesn't try to download dependencies before its execution.
  I cannot find anywhere a task name which does it to add it on list dependsOn. </p>