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.boolean
Whether the remote build cache is enabled.boolean
Whether storing build cache entries is enabled.void
setEnabled
(boolean enabled) Sets whether to enable the remote build cache.void
setStoreEnabled
(boolean storeEnabled) Sets whether to store build cache entries.
-
Method Details
-
isEnabled
boolean isEnabled()Whether the remote build cache is enabled.- Returns:
true
if the remote build cache is enabled,false
otherwise
-
setEnabled
void setEnabled(boolean enabled) Sets whether to enable the remote build cache.Configuration via the
develocity.cache.remote.enabled
system 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:
true
if storing build cache entries is enabled,false
otherwise
-
setStoreEnabled
void setStoreEnabled(boolean storeEnabled) Sets whether to store build cache entries.Configuration via the
develocity.cache.remote.storeEnabled
system 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
-