Interface LocalBuildCache
-
public interface LocalBuildCacheConfigures the local build cache.The specified values will take precedence over the values defined in the
develocity.xml.- Since:
- 1.21
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CleanupPolicygetCleanupPolicy()Gets the cleanup policy configuration.java.io.FilegetDirectory()Gets the local build cache directory.booleanisEnabled()Whether the local build cache is enabled.booleanisStoreEnabled()Whether storing build cache entries is enabled.voidsetDirectory(java.io.File directory)Sets the local build cache directory.voidsetEnabled(boolean enabled)Sets whether to enable the local build cache.voidsetStoreEnabled(boolean storeEnabled)Sets whether to store build cache entries.
-
-
-
Method Detail
-
isEnabled
boolean isEnabled()
Whether the local build cache is enabled.- Returns:
trueif the local build cache is enabled,falseotherwise
-
setEnabled
void setEnabled(boolean enabled)
Sets whether to enable the local build cache.Configuration via the
develocity.cache.local.enabledsystem property will always take precedence.- Parameters:
enabled- whether to enable the local 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.local.storeEnabledsystem property will always take precedence.- Parameters:
storeEnabled- whether to enable storing build cache entries
-
getDirectory
java.io.File getDirectory()
Gets the local build cache directory.- Returns:
- the local build cache directory
-
setDirectory
void setDirectory(java.io.File directory)
Sets the local build cache directory.Configuration via the
develocity.cache.local.directorysystem property will always take precedence.- Parameters:
directory- the local build cache directory
-
getCleanupPolicy
CleanupPolicy getCleanupPolicy()
Gets the cleanup policy configuration.- Returns:
- the cleanup policy configuration
-
-