On 31/12/2010, at 1:36 AM, Munoz, Pablo [Tech] wrote:

> Here are the reasons:
>  
> 1.       We use a file system resolver for first-class (runtime/primary) 
> dependencies that we don’t want to download and re-bundle with the assembly.  
> Instead we use “useOrigin” cache attribute to reference from original 
> location in classpath.  We use the ivy:cachepath ant task to get the 
> classpath.  We find this to be a powerful feature of Ivy because it 
> substantially cuts down on build-latency and footprint size of the final 
> product.

The flatDir() resolver has useOrigin = true as the default.

As part of the Gradle 1.0-milestone-1 and 1.0-milestone-2 releases, we plan to 
rework the dependency DSL. This will probably include having useOrigin = true 
become the default for all resolvers and caches.

Given this, do you think you'll still need to configure the ivy caches?


> 2.       Because of the above reason we keep separate caches for each 
> resolver.
>  
> Here is a snippet from a sample ivysettings.xml
>  
>       <caches default="cache">
>             <cache name="cache" basedir="${ivy.home}/cache" />
>             <cache name="areacache" basedir="${ivy.home}/areacache" />
>             <cache name="gnscache" basedir="${ivy.home}/gnscache" 
> useOrigin="true"/>
>       </caches>
>  
>  
>  
> From: Adam Murdoch [mailto:[email protected]] 
> Sent: Wednesday, December 29, 2010 3:21 PM
> To: [email protected]
> Subject: Re: [gradle-user] Ivy Caches in gradle
>  
>  
> On 29/12/2010, at 5:29 AM, Munoz, Pablo [Tech] wrote:
> 
> 
> I want to able to use “useOriginal” location attribute as well as assign 
> specific caches to specific resolvers.
> This are very critical functionalities for what we do.
>  
> Could you give a bit more detail about why you need to do this? It sounds 
> rather similar to what we plan to have the cache do by default.
> 
> 
>  
>  
> From: Adam Murdoch [mailto:[email protected]] 
> Sent: Monday, December 27, 2010 3:10 PM
> To: [email protected]
> Subject: Re: [gradle-user] Ivy Caches in gradle
>  
>  
> On 28/12/2010, at 7:06 AM, Munoz, Pablo [Tech] wrote:
> 
> 
> 
> Is there a way to set ivy caches [1] in gradle?
>  
> There isn't at the moment.
>  
> I'm curious, why do you want to configure the ivy cache?
>  
> 
> --
> Adam Murdoch
> Gradle Developer
> http://www.gradle.org
> CTO, Gradle Inc. - Gradle Training, Support, Consulting
> http://www.gradle.biz
>  
>  
> 
> --
> Adam Murdoch
> Gradle Developer
> http://www.gradle.org
> CTO, Gradle Inc. - Gradle Training, Support, Consulting
> http://www.gradle.biz
>  


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz

Reply via email to