On 11/03/2011, at 8:02 PM, Brett Cave wrote:

> 
> 
> On Tue, Mar 8, 2011 at 4:46 AM, Adam Murdoch <[email protected]> 
> wrote:
> 
>>> mavenRepo(urls: '...') {
>>>     // Always check for new snapshots
>>>     snapshotTimeout = 0
>>> }
> 
> 
> This tries to cast it to CacheTimeoutStrategy, and by default theres DAILY 
> and ALWAYS. the alternative to set it is with mavenRepo().setSnapshotTimeout.
> 
> I set it to ALWAYS, rebuild and upload a dependency to the repo, and then 
> kick off a downstream build. New snapshots are not retrieved.   The same 
> behaviour happens when using .setSnapshotTimeout(0). If I delete files from 
> the cache, new snapshots are retrieved.

You have to make this change in the build that consumes the snapshots, not the 
build that produces them.

> 
> 
>> 
>> Can you please point me to the part of the Gradle code base that implements 
>> this. I am looking to add something similar to Grails.
> 
> https://github.com/gradle/gradle/blob/master/subprojects/core/src/main/groovy/org/gradle/api/internal/artifacts/ivyservice/GradleIBiblioResolver.java
> 
> 
> --
> Adam Murdoch
> Gradle Developer
> http://www.gradle.org
> Co-Founder and VP of Engineering, Gradleware Inc. - Gradle Training, Support, 
> Consulting
> http://www.gradleware.com
> 
> 
> 
> 
> -- 
> Brett Cave
> Systems Architect
> Jemstep, Inc
> 
> www.jemstep.com
> 


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
Co-Founder and VP of Engineering, Gradleware Inc. - Gradle Training, Support, 
Consulting
http://www.gradleware.com

Reply via email to