Gradle downloads changing modules every build when using an ivy DependencyResolver

If you specify a repository using an Ivy DependencyResolver, and set the cacheChangingModules timeout to zero, then for a SNAPSHOT module, the descriptor file (ivy.xml/pom.xml) and artifact files will be re-downloaded on every build.

eg: This will result in *-SNAPSHOT.pom/.jar being re-downloaded every build.

configurations.all {
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
repositories {
    add(new org.apache.ivy.plugins.resolver.URLResolver()) {
        name = "repo"
        changingMatcher = 'regexp'
        changingPattern = '.*SNAPSHOT.*'

This is GRADLE-2141