Table of Contents
API Documentation: | BuildCacheConfiguration |
---|
Configuration for the build cache for an entire Gradle build.
Method | Description |
local(type) | Configures the local cache with the given type. |
local(type, configuration) | Configures the local cache with the given type. |
local(configuration) | Executes the given action against the local configuration. |
remote(type) | Configures a remote cache with the given type. |
remote(type, configuration) | Configures a remote cache with the given type. |
remote(configuration) | Executes the given action against the currently configured remote cache. |
The local cache configuration.
The remote cache configuration.
Configures the local cache with the given type.
Note: using any type except DirectoryBuildCache
is deprecated.
If a local build cache has already been configured with a different type, this method replaces it.
Storing ("push") in the local build cache is enabled by default.
Configures the local cache with the given type.
Note: using any type except DirectoryBuildCache
is deprecated.
If a local build cache has already been configured with a different type, this method replaces it.
If a local build cache has already been configured with the same type, this method configures it.
Storing ("push") in the local build cache is enabled by default.
void
local
(Action
<? super BuildCache
>
configuration)
Action
<? super BuildCache
>Executes the given action against the local configuration.
Configures a remote cache with the given type.
If a remote build cache has already been configured with a different type, this method replaces it.
Storing ("push") in the remote build cache is disabled by default.
Configures a remote cache with the given type.
If a remote build cache has already been configured with a different type, this method replaces it.
If a remote build cache has already been configured with the same, this method configures it.
Storing ("push") in the remote build cache is disabled by default.
void
remote
(Action
<? super BuildCache
>
configuration)
Action
<? super BuildCache
>Executes the given action against the currently configured remote cache.