RemoteCacheSettings

Remote Cache Settings

Specifies settings which configure Gradle's remote build cache; these may be provided in lieu of settings specified directly with Gradle, and are preferred over directly specifying settings. By default, the remote build cache is enabled in all circumstances.

Push of objects is enabled by default. Object push (uploading to the cache) can be disabled by setting push to false, or by using any of the condition builders specified by the MutableCacheSettings or MutableRemoteCacheSettings types.

Inheritors

Properties

Link copied to clipboard
abstract val enabled: Property<Boolean>

Indicates whether a given cache sub-system should be enabled or disabled (either a local cache or remote cache). If a caching sub-system is "disabled," it is not used at all for the current build.

Link copied to clipboard
abstract val push: Property<Boolean>

Whether build outputs will be uploaded to the cache as needed; enabled by default.

Functions

Link copied to clipboard
open fun disable()

Shorthand function to disable this cache configuration.

Link copied to clipboard
open fun enable()

Shorthand function to enable this cache configuration.