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-2101

Dependency resolution incorrectly uses cached values from different repository

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Resolution: Fixed
  • Affects Version/s: 1.0-milestone-8
  • Fix Version/s: 1.0-milestone-8a

Description

Entries in the dependency resolution cache are stored against the unique id of a repository. So we cache the fact that we couldn't find module-X in repository XYZ. This means the next time we use repository XYZ, we don't need to check since we know that module-X is missing.

The bug is that repository ids are not being correctly calculated for maven/mavenRepo and ivy repositories. Only the name is being taken into account; if not specified a common default name will be used. This means that different builds with different repository declarations may share the same cache entries. A example symptom of this is when a module will appear to be missing from a declared repository, even though it is actually present in that repository. This would be due to the cache recording the module as missing from a repository with the same name, in a previous build.

The only workaround for this bug is to run the build with '--refresh dependencies' whenever you switch between build scripts, and to ensure that you always declare the same repositories in the same order within a single build (including the buildscript block).

Issue Links

Supercedes

Bug - A problem which impairs or prevents the functions of the product. GRADLE-2100 Ordering of repository declarations can cause Could not resolve all dependencies error

  • Resolved - A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
  • TeamCity
  • Commits
  • Source
  • Reviews
Daz DeBoer made changes - 14/Feb/12 11:43 PM
Field Original Value New Value
Link This issue Supercedes GRADLE-2100 [ GRADLE-2100 ]
Pivotal Tracker Integration made changes - 14/Feb/12 11:48 PM
Status Open [ 1 ] In Progress [ 3 ]
Adam Murdoch made changes - 16/Feb/12 1:42 PM
Fix Version/s 1.0-milestone-9 [ 10161 ]
Fix Version/s 1.0-milestone-8a [ 10260 ]
Peter Niederwieser made changes - 16/Feb/12 4:24 PM
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]
Pivotal Tracker Integration made changes - 17/Feb/12 5:44 PM
Status Resolved [ 5 ] Closed [ 6 ]
Pivotal Tracker Integration made changes - 17/Feb/12 5:44 PM
Status Closed [ 6 ] Reopened [ 4 ]
Resolution Fixed [ 1 ]
Pivotal Tracker Integration made changes - 17/Feb/12 5:44 PM
Resolution Fixed [ 1 ]
Status Reopened [ 4 ] Resolved [ 5 ]
Peter Niederwieser made changes - 20/Feb/12 12:30 PM
Status Resolved [ 5 ] Closed [ 6 ]
Pivotal Tracker Integration made changes - 20/Feb/12 1:33 PM
Status Closed [ 6 ] Reopened [ 4 ]
Resolution Fixed [ 1 ]
Pivotal Tracker Integration made changes - 20/Feb/12 1:33 PM
Resolution Fixed [ 1 ]
Status Reopened [ 4 ] Resolved [ 5 ]
Pivotal Tracker Integration made changes - 20/Feb/12 1:33 PM
Status Resolved [ 5 ] Closed [ 6 ]
Luke Daley made changes - 03/Jan/13 5:09 AM
Workflow jira with pivotal tracker [ 15288 ] jira with pivotal tracker (no resolved, only closed) [ 17483 ]
Luke Daley made changes - 04/Jan/13 5:10 AM
Status Closed [ 6 ] Resolved [ 5 ]
Workflow jira with pivotal tracker (no resolved, only closed) [ 17483 ] Copy of jira with pivotal tracker (no closed, only resolved) [ 20140 ]
Unable to get TeamCity builds: No active plugin license is found! Please visit http://stiltsoft.com/teamcity for details

People

  • Assignee:
    Daz DeBoer
    Reporter:
    Daz DeBoer
Vote (1)
Watch (2)

Dates

  • Created:
    14/Feb/12 11:42 PM
    Updated:
    04/Jan/13 5:10 AM
    Resolved:
    20/Feb/12 1:33 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.