All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gradle.maven.extension.api.cache.LocalBuildCache Maven / Gradle / Ivy

Go to download

Maven extension for Develocity installations that provides Build Insights, Build Caching, Predictive Test Selection, and Test Distribution for Maven builds. Alternatively, Build Insights can be captured and viewed for free at scans.gradle.com and Build Caching can be used for free locally. See https://gradle.com for more information on Develocity.

There is a newer version: 1.23
Show newest version
package com.gradle.maven.extension.api.cache;

import java.io.File;

/**
 * Configures the local build cache.
 * 

* The specified values will take precedence over the values defined in the {@code gradle-enterprise.xml}. * * @since 1.6.5 * @deprecated since 1.21, replaced by {@link com.gradle.develocity.agent.maven.api.cache.LocalBuildCache} */ @Deprecated public interface LocalBuildCache { /** * Whether the local build cache is enabled. * * @return {@code true} if the local build cache is enabled, {@code false} otherwise * @since 1.6.5 */ boolean isEnabled(); /** * Sets whether to enable the local build cache. *

* Configuration via the {@code gradle.cache.local.enabled} system property will always take precedence. * * @param enabled whether to enable the local build cache * @since 1.6.5 */ void setEnabled(boolean enabled); /** * Whether storing build cache entries is enabled. * * @return {@code true} if storing build cache entries is enabled, {@code false} otherwise * @since 1.14 */ boolean isStoreEnabled(); /** * Sets whether to store build cache entries. *

* Configuration via the {@code gradle.cache.local.storeEnabled} system property will always take precedence. * * @param storeEnabled whether to enable storing build cache entries * @since 1.14 */ void setStoreEnabled(boolean storeEnabled); /** * Gets the local build cache directory. * * @return the local build cache directory * @since 1.6.5 */ File getDirectory(); /** * Sets the local build cache directory. *

* Configuration via the {@code gradle.cache.local.directory} system property will always take precedence. * * @param directory the local build cache directory * @since 1.6.5 */ void setDirectory(File directory); /** * Gets the cleanup policy configuration. * * @return the cleanup policy configuration * @since 1.6.5 */ CleanupPolicy getCleanupPolicy(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy