title: Gradle Task Dependencies
body: <p>How on earth can I do this in gradle: eg. want to use <code>HTTPBuilder</code> in a task.</p>
  
  <p>build.gradle:</p>
  
  <pre><code>repositories {
   mavenRepo urls: "http://repository.codehaus.org"
  }
  
  configurations {
   testConfig
  }
  
  dependencies {
   testConfig 'org.codehaus.groovy.modules.http-builder:http-builder:0.5.0'
  }
  
  task someTaskThatUsesHTTPBuilder (dependsOn: configurations.testConfig) &lt;&lt; {
       new HTTPBuilder()// &lt;--this cannot be resolved/found??
  }
  </code></pre>