We currently do not do any purging of the cache. So they were all the artifacts 
that were resolved by that name at some time.

There is separate meta data that maps exactly what content for a given name 
exists in a repository.

Consider this case…

Build A builds against spock's snapshot repo which has a snapshot built 10 mins 
ago. Then you run build B which runs against a repo that mirrors Spock's but 
only checks for updates every 24 hours and has checked an hour ago.

This is one of the reasons we cache things by checksum and not name. Basically, 
names lie.

On 19/02/2012, at 8:16 AM, Russel Winder <[email protected]> wrote:

> Is there any reason why the artifact-8 hierarchy of the ~/.gradle/caches
> has multiple copies of jars.  At first sight this seems insane...
> 
> .
> ├── 3abb10ed728b27d1cc43eb563cdc78fbc87313b2
> │   └── spock-core-0.6-groovy-1.8-SNAPSHOT.jar
> ├── 61b1e09bdae0bb288fadefe51e96ead48d12c5a8
> │   └── spock-core-0.6-groovy-1.8-SNAPSHOT.jar
> ├── 673437d8ed855c1dea080327e38ecec44b1720e0
> │   └── spock-core-0.6-groovy-1.8-SNAPSHOT.jar
> ├── 7fdc354498a0052c9ad74b144201eddebc409015
> │   └── spock-core-0.6-groovy-1.8-SNAPSHOT.jar
> └── b5e9c78d6225e4577fad447b061e4ca627f97e2e
>    └── spock-core-0.6-groovy-1.8-SNAPSHOT.jar
> 
> 
> -- 
> Russel.
> =============================================================================
> Dr Russel Winder      t: +44 20 7585 2200   voip: sip:[email protected]
> 41 Buckmaster Road    m: +44 7770 465 077   xmpp: [email protected]
> London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to