Gradle

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
To raise new issues or bugs against Gradle, please use forums.gradle.org.
  • Gradle
  • GRADLE-2141

Gradle downloads changing modules every build when using an ivy DependencyResolver

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Gradle Forums topic Reference:

    problem - Gradle downloads changing modules every build when using an ivy DependencyResolver (pending)

Description

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"
addIvyPattern("http://localhost:${server.port}/repo/[organization]/ivy-[module]-[revision].xml")
addArtifactPattern("http://localhost:${server.port}/repo/[organization]/[module]-[revision].[ext]")
changingMatcher = 'regexp'
changingPattern = '.SNAPSHOT.'
}
}

Activity

  • All
  • Comments
  • History
  • Activity
  • TeamCity
  • Remote Attachments
  • Commits
  • Source
  • Reviews
No commits found.

People

  • Assignee:
    Unassigned
    Reporter:
    Gradle Forums
Vote (0)
Watch (1)

Dates

  • Created:
    04/Mar/12 1:31 PM
    Updated:
    04/Mar/12 1:43 PM
  • Atlassian JIRA (v5.0.3#729-sha1:bf569e4)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Gradle. Try JIRA - bug tracking software for your team.