Are you sure it is trying to compile buildSrc using Groovy 1.7.10? Anyway, Groovy 1.8 can't be used for build-related code at this time. This is because Gradle will always execute the code with 1.7, and code compiled against 1.8 cannot be executed with 1.7.
We've started work on upgrading Gradle to Groovy 1.8, but we have to wait for some Groovy 1.8 bugs to be fixed. Depending on when this happens, we will upgrade before or after Gradle 1.0. -- Peter Niederwieser Principal Engineer, Gradleware http://gradleware.com Creator, Spock Framework http://spockframework.org Twitter: @pniederw edovale wrote: > > Folks, > I have a gradle file that uses some scripts I have created ina buildSrc > directory. These scripts are using groovy 1.8 features and therefore need > to > be compiled against groovy 1.8. > When I run gradle on the buildSrc directory directly it works like a > charm, > however, when I run gradle on the top project it is trying to compile the > buildSrc project using 1.7.10 and this, as expected, fails. > How can I work around this? > > Thanks. > > Erick. > -- View this message in context: http://gradle.1045684.n5.nabble.com/buildSrc-and-groovy-1-8-tp4687017p4687103.html Sent from the gradle-user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
