Have there been any changes in the classloader for plugins?


(Kenny Stridh) #1

Hi, I’m trying to get a plugin (the gradle-rpm-plugin) working in Gradle 1.6. I just wonder if there have been any changes to the classloader for plugins.

This plugin uses for example guava that is part of the gradleApi(). But when I try to run my build gradle complains about NoClassDef on these classes.

Not sure where to continue my trouble shooting.


(uklance) #2

Not sure if this helps but google-collections was renamed to google-guava but the packages remained the same. Make sure you only have one on your casspath.


(Kenny Stridh) #3

In this case it’s the PreCondition classes that are not found in runtime. Compilation works as expected but classes in external dependencies to gradle is not found in runtime.

It’s not my plugin but I’m building it from source with minor alterations.