Ability to supress check consistency with bundled ivy reolution


(Simon Wiehe) #1

We have a large number of ivy.xml files where the version information is inconsistent with the actual version of the library. With the use of a custom resolver the checkconsistency flag can be set to false to prevent gradle from failing to resolve libraries where the version information is inconsistent.

With the removal of custom Ivy resolvers in 2.x can we have a mechanism of turning off the consistency check on a bundled ivy resolver?

e.g. we can currently do the following:

repositories {

add(new org.apache.ivy.plugins.resolver.URLResolver()) {

addIvyPattern(“file:////filesytem/repo/[organisation]/[module]-ivy-[revision].xml”)

addArtifactPattern(“file:////filesystem/repo/[organisation]/[module]-revision.[ext]”)

checkconsistency = false

}

}

but we cannot do

repositories {

ivy {

ivyPattern “/filesytem/repo/[organisation]/[module]-ivy-[revision].xml”

artifactPattern “/filesystem/repo/[organisation]/[module]-revision.[ext]”

checkconsistency = false

}

}


(Peter Niederwieser) #2

Raised as GRADLE-2935.