My builds fail with "UnsupportedOperationException: Mediators are not support." since 1.9


(Marek Radonsky) #1

I’ve upgraded to Gradle 1.9 and during my dependency resolution I now see errors like this one:

  > Could not resolve org.jclouds.driver:jclouds-jsch:1.6.0.

 Required by:



  com.netflix.simianarmy:simianarmy:2.4-SNAPSHOT

  > Failed to add into filestore '/Users/xxx/.gradle/caches/modules-2/metadata-2.1/descriptors' at 'org.jclouds.driver/jclouds-jsch/1.6.0/5bd455a770e2b77c3933b4a6a73dd47e/ivy.xml'  

This error is caused by an UnsupportedOperationException thrown by the IvyXmlModuleDescriptorWriter class:

  Caused by: java.lang.UnsupportedOperationException: Mediators are not support.

at org.gradle.api.internal.artifacts.ivyservice.IvyXmlModuleDescriptorWriter.printDependencies(IvyXmlModuleDescriptorWriter.java:79)

I see that this code was added by the latest commit in the file https://github.com/gradle/gradle/commit/586985475e3aa13aae0546d38938043de96fc0cd

Is there anything I could do to fix this issue?

Thanks, Marek


(Björn Kautler) #2

Any news on this one? I hit the same problem after updating from 1.0 to 1.11


(Björn Kautler) #3

Hm, http://issues.gradle.org/browse/GRADLE-3013 seems to be the issue here. It states 1.12 resolves this issue. Unfortunately I’m bit by the known issue in 1.12 and will also not be able to use 2.0 once it comes out as it removes deprecated functionality and will probably not yet provide a replacement for it. :frowning: