Caching for buildScript snapshot dependencies

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

You need:

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