How to change in Gradle time to live for artifact caches


#1

I am interesting in reducing time between refresh of SNAPSHOT versions of dependencies in Gradle. How can I configure it and what is the default value?


(Adam Murdoch) #2

Have a look at http://gradle.org/docs/current/userguide/dependency_management.html#sub:controlling_caching

Snapshots are currently treated as changing modules, so you should tweak how long to cache changing modules for.


#3

Thanks. I missed this part in the documentation.