I’m developing a Gradle plugin which acts as a driver for the Google Closure Stylesheets compiler. I’ve run into some problems running the plugin because of this error message:
Caused by: java.lang.NoSuchMethodError: com.google.common.collect.Queues.newArrayDeque()Ljava/util/ArrayDeque;
The Closure Stylesheets compiler depends on Guava 12.0.0 but according to this line in (gradle/dependencies.gradle):
Gradle itself depends on an earlier version of the library… I can confirm that ‘Queues.newArrayDeque()’ was not added to Guava until the 12.0 release: http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/collect/Queues.html#newArrayDeque()
Does Gradle share it’s dependencies with plugins?
Is it possible to force the plugin to use Guava 12.0+ ?