NoClassDefFoundError: groovy/util/AntBuilder

not-a-bug

(Ethan Hall) #1

Hi all,

I’ve notice that moving to 3.0-rc-1 my plugin tests have started to fail with:

Caused by: java.lang.NoClassDefFoundError: groovy/util/AntBuilder
	at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)

I am calling subProject.tasks.getByName('groovydoc').execute() to make sure the task has outputs like I want. This worked pre 3.x, but seems to be broken with 3.0-rc-1.


(Mark Vieira) #2

@ethankhall I assume you are using ProjectBuilder for this test?


(Ethan Hall) #3

@mark_vieira Yeah I am using ProjectBuilder for it.


(Mark Vieira) #4

Ok. I’ll look into what’s going on here but for this kind of thing I’d suggest using TestKit.


(Ethan Hall) #5

Yeah, that’s what I’m thinking I’ll have to do.