BuildCacheConfiguration

Configuration for the build cache for an entire Gradle build.

Since

3.5

Functions

Link copied to clipboard
Returns the local directory cache configuration.
Link copied to clipboard
@Nullable
abstract fun getRemote(): @Nullable BuildCache
Returns the remote cache configuration.
Link copied to clipboard
abstract fun local(configuration: Action<in DirectoryBuildCache>)
Executes the given action against the local configuration.
Link copied to clipboard
abstract fun <T : BuildCache?> registerBuildCacheService(configurationType: Class<T>, buildCacheServiceFactoryType: Class<out BuildCacheServiceFactory<in T>>)
Registers a custom build cache type.
Link copied to clipboard
abstract fun <T : BuildCache?> remote(type: Class<T>): T
abstract fun <T : BuildCache?> remote(type: Class<T>, configuration: Action<in T>): T
Configures a remote cache with the given type.
abstract fun remote(configuration: Action<in BuildCache>)
Executes the given action against the currently configured remote cache.