Ok, I tried putting a groovy file in buildSrc (look at the link to see my layout).
here is build.gradle: import buildSrc.Config a = getConfig("blah") println a ---------- here is my buildSrcConfig: package buildSrc class Config{ def static getConfig(fileName){ return "BLAH" } } When I run gradle I get: zeppelin:build pswenson$ gradle FAILURE: Build failed with an exception. * What went wrong: Could not load compiled classes for build file '/Users/pswenson/dev/sag/gradle/build/build.gradle' from cache. * Try: Run with -s or -d option to get more details. Run with -S option to get the full (very verbose) stacktrace. BUILD FAILED Total time: 2.771 secs http://grab.by/2RzI gotta be some really simple thing i'm not doing right. also, if i want to have Jars added to my gradle classpath, where should I put them? thanks phil On Fri, Mar 5, 2010 at 9:16 AM, Hans Dockter <h...@gradle.biz> wrote: > > > On Thu, Mar 4, 2010 at 8:01 PM, phil swenson <phil.swen...@gmail.com> wrote: >> >> I am going to give Gradle 0.9 a try. >> >> I have external groovy & java files I'd like to import to my gradle >> build. I know 0.9 offers several options for this over 0.8. Could >> someone point me in the right direction? > > The following is already possible with 0.8 (see > http://gradle.org/0.8/docs/userguide/organizing_build_logic.html): You can > either put Java/Groovy source classes into the buildSrc dir in root. They > will be automatically added to your buildscript classpath. Or you can use > the buildscript {} element to add external jars to the classpath > > What has been added in 0.9 is that you can now easily share/decompose build > script. See section 11.4 of the latest Gradle user's guide. > > - Hans > > -- > Hans Dockter > Founder, Gradle > http://www.gradle.org, http://twitter.com/gradleorg > CEO, Gradle Inc. - Gradle Training, Support, Consulting > http://www.gradle.biz > >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email