Hello,
I upgraded somes projects from gradle 1.11 to gradle 2.3 and faces an issue with some ivy dependencies whose ivy.xml contains the following configuration :
<ivy-module version="2.0">
<info .../>
<configurations defaultconfmapping="test->*;default->*,!test;%->*,!test">
<conf name="test" extends="default"/>
<conf name="default"/>
</configurations>
...
<dependencies>
<dependency org="log4j" name="log4j" rev="1.2.14"/>
...
If fails during resolution of a log4j dependency with the following error:
15:42:59.420 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency xxx:yyy:5.63.0(default) -> log4j:log4j:1.2.14(dependency: log4j#log4j;1.2.14 {test=[*], default=[*, !test], %=[*, !test]})
15:42:59.420 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Selecting new module version log4j:log4j:1.2.14
...
15:42:59.439 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.IvyXmlModuleDescriptorParser] post 1.3 ivy file: using exact as default matcher
15:42:59.440 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Using cached module metadata for module 'log4j:log4j:1.2.14' in 'maven'
15:42:59.450 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainDependencyResolver] Using log4j:log4j:1.2.14 from Maven repository 'maven'
...
> Module version xxx:yyy:5.63.0, configuration 'default' declares a dependency on configuration '*!test' which is not declared in the module descriptor for log4j:log4j:1.2.14
I do not understand from where comes the *!test configuration. I unfortunately do no have a public accessible ivy repository where such module is published.
Is there something i can do to fix this without touching to the xxx:yyy module’s ivy.xml in my gradle configuration ? Or the ivy.xml configuration is definitively wrong ?