[GRADLE-1907] Avoid unnecessary dependency downloads through checksum comparison Created: 08/Nov/11  Updated: 04/Jan/13  Resolved: 02/Feb/12

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-5
Fix Version/s: 1.0-milestone-8

Type: Improvement
Reporter: Chris Beams Assignee: Daz DeBoer
Resolution: Fixed Votes: 1


 Description   

The cache changes in Gradle 1.0-milestone-5 force downloading dependencies on a per-repository basis, even if the exact group/artifact/version tuple already exists in the local cache.

This can easily result in large amounts of, from the user's perspective, unnecessary downloads.

Consider optimizing this with early checksum comparisons. If a GAV already exists in the cache, but associated with a different repository, then fetch the checksum(s) from the new repository and compare with the local copy. If the same, simply link the existing artifact to the new repository locally. If different, of course download the differing artifact.



 Comments   
Comment by Chris Beams [ 02/Feb/12 ]

thanks, guys. I've been putting this feature through its paces heavily on m8 snapshots, and it's working really well so far. Cheers!

Generated at Wed Jun 30 12:07:34 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.