Build Cache Configuration
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
Returns the remote cache configuration.
Link copied to clipboard
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
inline fun <T : BuildCache> BuildCacheConfiguration.registerBuildCacheService(buildCacheServiceFactoryType: KClass<out BuildCacheServiceFactory<in T>>)
Registers a custom build cache type.
inline fun <T : BuildCache> BuildCacheConfiguration.registerBuildCacheService(configurationType: KClass<T>, buildCacheServiceFactoryType: KClass<out BuildCacheServiceFactory<in T>>)
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.caching.configuration.BuildCacheConfiguration.registerBuildCacheService.
Link copied to clipboard
Configures a remote cache with the given type.
Executes the given action against the currently configured remote cache.
Link copied to clipboard
Configures a remote cache with the given type.
inline fun <T : BuildCache> BuildCacheConfiguration.remote(type: KClass<T>, configuration: Action<in T>): T
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.caching.configuration.BuildCacheConfiguration.remote.