title: Error compiling a Groovy project using @Grab annotation
body: <p>I'm compiling a Groovy project with Gradle, but I've noticed that when I use the @Grab annotation in my code, I get the following error:</p>
  <pre class="lang-none prettyprint-override"><code>$ gradle compile
  :buildInfo
  :compileJava UP-TO-DATE
  :compileGroovy FAILED
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':compileGroovy'.
  &gt; org/apache/ivy/core/report/ResolveReport
  </code></pre>
  <p>(full stack trace here <a href="http://pastebin.com/0ty4jNct" rel="nofollow noreferrer">http://pastebin.com/0ty4jNct</a>)</p>
  <p>I've found out that the only way to get it working is to add the 'groovy' and 'ivy' module to the <em>groovy</em> classpath, but I would like to avoid this, since the <em>groovy</em> classpath is deprecated.</p>
  <p>Is this a Gradle bug? or there's a better way to manage the @Grab dependency?</p>