Peter Ledbrook wrote:
No "build.gradle" in "buildSrc". I just have a build file in the root
of my project directory.
    

 I have just tried with a simple "build.gradle" in the "buildSrc" directory:

  usePlugin("java")
  sourceCompatibility = 1.5
  targetCompatibility = 1.5

It doesn't complain about "build/classes" any more,

I get the same failure when I don't have a build.gradle file in the buildSrc directory. It looks like we've broken the default build script for the buildSrc directory. I'll have a bit more of a dig to figure out a fix. I've added a JIRA issue for this: http://jira.codehaus.org/browse/GRADLE-318

 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).


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

Reply via email to