Interface RemoteBuildCache
public interface RemoteBuildCache
Configures the remote build cache.
The specified values will take precedence over the values defined in the develocity.xml.
- Since:
- 1.21
-
Method Summary
Modifier and TypeMethodDescriptionGets the server configuration.booleanWhether the remote build cache is enabled.booleanWhether storing build cache entries is enabled.voidsetEnabled(boolean enabled) Sets whether to enable the remote build cache.voidsetStoreEnabled(boolean storeEnabled) Sets whether to store build cache entries.
-
Method Details
-
isEnabled
boolean isEnabled()Whether the remote build cache is enabled.- Returns:
trueif the remote build cache is enabled,falseotherwise
-
setEnabled
void setEnabled(boolean enabled) Sets whether to enable the remote build cache.Configuration via the
develocity.cache.remote.enabledsystem property will always take precedence.- Parameters:
enabled- whether to enable the remote build cache
-
isStoreEnabled
boolean isStoreEnabled()Whether storing build cache entries is enabled.- Returns:
trueif storing build cache entries is enabled,falseotherwise
-
setStoreEnabled
void setStoreEnabled(boolean storeEnabled) Sets whether to store build cache entries.Configuration via the
develocity.cache.remote.storeEnabledsystem property will always take precedence.- Parameters:
storeEnabled- whether to enable storing build cache entries
-
getServer
Server getServer()Gets the server configuration.- Returns:
- the server configuration
-