title: Classpath for ant plugins when using ANTBuilder from Gradle
body: <p>I have a <code>build.gradle</code> file which loads <A HREF="http://pmd.sourceforge.net/" rel="noreferrer">PMD</A> (downloading it from upstream Maven), and then loads an Ant build.xml file which requires PMD:</p>
  
  <pre><code>buildscript {
    repositories {
      mavenCentral()
    }
    dependencies {
      classpath 'pmd:pmd:4.2.5'
    }
  }
  ant.importBuild 'shared-build.xml'
  </code></pre>
  
  <p>However, the Ant import fails:</p>
  
  <pre><code>taskdef class net.sourceforge.pmd.ant.PMDTask cannot be found
  using the classloader AntClassLoader[]
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
  [...]
    at org.gradle.api.internal.project.DefaultAntBuilder.importBuild(DefaultAntBuilder.groovy:76)
  </code></pre>
  
  <p>How can <A HREF="http://gradle.org/docs/current/userguide/ant.html" rel="noreferrer">Gradle's ant integration</A> be instructed to make this available?</p>