Caching for buildScript snapshot dependencies


(Wujek Srujek) #1

One can configure caching timeout for snapshots a.k.a. changing modules like this:

resolutionStrategy.cacheChangingModulesFor 0, 'seconds'

Can one do this for buildScript dependencies as well? For example, we have a snapshot gradle plugin and we would like the latest version to be checked every time (effectively, do not cache it). Is this possible?

wujek


(Luke Daley) #2

You need:

buildscript {
  configurations.classpath.resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}