I have a Groovy project that builds just fine on one machine.  However, I
just moved it to another machine, and now the :compileGroovy task fails.
The cause listed is

Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

When I run with --debug --stacktrace --info, the stacktrace is

org.gradle.api.tasks.TaskExecutionException:  Execution failed for task
':compileGroovy'.
         at org.gradle.api.internal.tasks.execution.
ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.
java:71)
         ...many more lines...
Caused by java.lang.NoClassDefFoundError: Could not initialize class
org.codehaus.groovy.runtime.InvokerHelper
         at org.gradle.api.AntBuilder.<init>(AntBuilder.java:23)
         ...many more lines...

gradle -v reports Gradle 1.0-milestone-3 and Groovy: 1.7.10.

I also have Groovy 1.8 installed (as I did on the machine for which this
build worked), but I have not explicitly put it into any classpaths.  It is
a dependency of the project I'm building, though.  I have tried removing
groovy 1.8 from my PATH variable, but that doesn't seem to help.  Any other
suggestions/help would be greatly appreciated.  Thanks!

Mark

Reply via email to