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

com.gradle.maven.extension.api.cache.CleanupPolicy 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.time.Duration;

/**
 * Configures the cleanup policy of 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.CleanupPolicy} */ @Deprecated public interface CleanupPolicy { /** * Gets whether the local build cache cleanup is enabled. * * @return {@code true} if the local build cache cleanup is enabled, {@code false} otherwise * @since 1.6.5 */ boolean isEnabled(); /** * Sets whether to enable the local build cache cleanup. *

* Configuration via the {@code gradle.cache.local.cleanup.enabled} system property will always take precedence. * * @param enabled whether to enable the local build cache cleanup * @since 1.6.5 */ void setEnabled(boolean enabled); /** * Gets the local build cache retention period. * * @return the local build cache cleanup retention period * @since 1.6.5 */ Duration getRetentionPeriod(); /** * Sets the local build cache cleanup retention period. *

* Configuration via the {@code gradle.cache.local.cleanup.retention} system property will always take precedence. * * @param retentionPeriod the local build cache cleanup retention period * @since 1.6.5 */ void setRetentionPeriod(Duration retentionPeriod); /** * Gets the local build cache cleanup interval. * * @return the local build cache cleanup interval * @since 1.6.5 */ Duration getCleanupInterval(); /** * Sets the local build cache cleanup interval. *

* Configuration via the {@code gradle.cache.local.cleanup.interval} system property will always take precedence. * * @param cleanupInterval the local build cache cleanup interval * @since 1.6.5 */ void setCleanupInterval(Duration cleanupInterval); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy