On Jun 3, 2009, at 8:53 PM, Gennadiy Shafranovich wrote:

I am trying to upgrade an existing project that was built with Gradle 0.5.2 to 0.6.1. Our install of 0.5.2 is using the embedded groovy jar from version 1.6.2 instead of the one it was distributed with to get a few more useful functions. It was running fine. I tried upgrading and ran into major issues.

I traced these down and set up a simple build.gradle script on a test project with just one line:

usePlugin('java')

I get the following output from gradle:

Build failed with an exception.
Run with -s or -d option to get more details. Run with -f option to get the full (very verbose) stacktrace.

Build file '/home/gshafranovich/eclipse-workspaces/test/build/ build.gradle' line: 1

A problem occurred evaluating root project 'build'.
Cause: org.codehaus.groovy.reflection.CachedClass.getCachedClass()Ljava/ lang/Class;

BUILD FAILED

I think this is because the return type of CachedClass.getCachedClass() has changed from java.lang.Class to CachedClass in groovy 1.6.2.

I am going to hold off on upgrading until Gradle would be compatible with a later version of groovy. Does anyone have any suggestions on whether my assumption are correct or not?

It would be very helpful to see the buildscript. Or at least the parts where the plugin and the dependencies are declared.

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to