gradle
8.3

# CacheConfigurations

@Incubating
interface CacheConfigurations

Configures caches stored in the user home directory. Note that these values can be read at any time, but can only be configured via an init script, ideally stored in the init.d directory in the user home directory.

## Functions

createdResources
Link copied to clipboard
abstract fun createdResources(cacheConfiguration: Action<out Any>)
Configures caching for resources that are created by Gradle during the course of a build.
downloadedResources
Link copied to clipboard
abstract fun downloadedResources(cacheConfiguration: Action<out Any>)
Configures caching for resources that are downloaded during Gradle builds.
getCleanup
Link copied to clipboard
abstract fun getCleanup(): Property<Cleanup>
Returns the cache cleanup settings that apply to all caches.
getCreatedResources
Link copied to clipboard
abstract fun getCreatedResources(): CacheResourceConfiguration
Returns the cache configuration for created resources.
getDownloadedResources
Link copied to clipboard
abstract fun getDownloadedResources(): CacheResourceConfiguration
Returns the cache configuration for downloaded resources.
getMarkingStrategy
Link copied to clipboard
abstract fun getMarkingStrategy(): Property<MarkingStrategy>
Configures how caches should be marked, if at all.
getReleasedWrappers
Link copied to clipboard
abstract fun getReleasedWrappers(): CacheResourceConfiguration
Returns the cache configuration for wrapper distributions that are released Gradle versions.
getSnapshotWrappers
Link copied to clipboard
abstract fun getSnapshotWrappers(): CacheResourceConfiguration
Returns the cache configuration for wrapper distributions that are released Gradle versions.
releasedWrappers
Link copied to clipboard
abstract fun releasedWrappers(cacheConfiguration: Action<out Any>)
Configures caching for wrapper distributions that are released Gradle versions.
snapshotWrappers
Link copied to clipboard
abstract fun snapshotWrappers(cacheConfiguration: Action<out Any>)
Configures caching for wrapper distributions that are snapshot Gradle versions.