[GRADLE-1803] Gradle Groovy compilation broken with Groovy 1.8.3. snapshots Created: 22/Sep/11  Updated: 23/Jan/13  Resolved: 23/Jan/13

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Graeme Rocher Assignee: Unassigned
Resolution: Incomplete Votes: 0


 Description   

Exception is:

Caused by: java.lang.NoClassDefFoundError: groovy/util/AntBuilder
        at java_lang_ClassLoader$loadClass.call(Unknown Source)
        at org.gradle.api.internal.project.DefaultIsolatedAntBuilder.execute(DefaultIsolatedAntBuilder.groovy:88)
        at org.gradle.api.internal.project.IsolatedAntBuilder$execute.call(Unknown Source)
        at org.gradle.api.internal.tasks.compile.AntGroovyCompiler.execute(AntGroovyCompiler.groovy:63)
        at org.gradle.api.internal.tasks.compile.IncrementalJavaSourceCompiler.execute(IncrementalJavaSourceCompiler.java:73)
        at org.gradle.api.tasks.compile.GroovyCompile.compile(GroovyCompile.java:60)
        at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:158)
        at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:93)
        at org.gradle.api.tasks.compile.GroovyCompile_Decorated.invokeMethod(Unknown Source)
        at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23)
        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:129)
        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:127)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:63)
        ... 31 more
Caused by: java.lang.ClassNotFoundException: groovy.util.AntBuilder
        ... 44 more


 Comments   
Comment by Levi Hoogenberg [ 16/Dec/11 ]

As a workaround, you can use groovy-all as module.

Comment by Adam Murdoch [ 08/May/12 ]

This should be fixed now. Can you try with 1.0-rc-3 and let us know how you go?

Generated at Wed Jun 30 12:04:46 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.