Peter Ledbrook wrote:
 but the compiler
can't find the Gradle classes:

  .../Grails.java:3: package org.grails.api does not exist
  import org.grails.api.*;
  ^



You could move the dependency on the grails jar from settings.gradle to
buildSrc/build.gradle. Then, the grails jar will be used to compile the
buildSrc classes, and the main build will pick it up as a transitive
dependency (the main build depends on buildSrc, which in turn depends on the
grails jar).
    

Sorry, that was a typo. It should have been:

  .../Grails.java:3: package org.gradle.api does not exist
  import org.gradle.api.*;

  

Try adding the following to your buildSrc/build.gradle:

compile.unmanagedClasspath(BootstrapUtil.gradleClasspath as File[])


Adam
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to