On 03/01/2012, at 11:30 PM, Luke Daley wrote:

> For the Grails build, we have to dig in to the artifact cache to pull out 
> jars and ivy metadata.
> 
> It would be useful if we could ask Gradle what the version number of the 
> cache is so that we can put something in place to fail when the cache layout 
> changes due to a Gradle upgrade.
> 
> Naive suggestion is something like: assert 
> gradle.dependencyCache.artifactCacheVersion == "7"
> 
> Going forward, the Grails build shouldn't need to do this but it might not be 
> a bad idea to expose this anyway.
> 

I really don't want to do this. The artifact cache is internal. I think we 
should instead expose the stuff that Grails needs (eg a way to ask for the ivy 
descriptor artifact for a module).

If you really, really want to know the artifact cache version, you can infer it 
from the Gradle version.


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

Reply via email to