Interface BuildCacheApi


  • @Deprecated
    public interface BuildCacheApi
    Deprecated.
    since 1.21, replaced by BuildCacheApi
    Configures the local and remote build cache.
    Since:
    1.6.5
    • Method Detail

      • getLocal

        LocalBuildCache getLocal()
        Deprecated.
        Gets the local build cache configuration.
        Returns:
        the local build cache configuration
        Since:
        1.6.5
      • getRemote

        RemoteBuildCache getRemote()
        Deprecated.
        Gets the remote build cache configuration.
        Returns:
        the remote build cache configuration
        Since:
        1.6.5
      • isRequireClean

        boolean isRequireClean()
        Deprecated.
        Whether the clean lifecycle phase is required in order to use the build cache.
        Returns:
        true if clean is required; false, otherwise
        Since:
        1.10.3
      • setRequireClean

        void setRequireClean​(boolean requireClean)
        Deprecated.
        Sets whether the clean lifecycle phase is required in order to use the build cache.

        You should only set this to false when the build is started from a clean working directory. Otherwise, produced build cache entries may be incorrect.

        Configuration via the gradle.cache.requireClean system property will always take precedence.

        Parameters:
        requireClean - whether clean is required in order to use the build cache.
        Since:
        1.10.3
      • registerMojoMetadataProvider

        void registerMojoMetadataProvider​(MojoMetadataProvider metadataProvider)
        Deprecated.
        Registers a MojoMetadataProvider, which allows users to configure caching for Mojos that the Gradle Enterprise Maven extension does not support out of the box.
        Parameters:
        metadataProvider - the metadata provider, must not be null
        Since:
        1.15
      • registerNormalizationProvider

        void registerNormalizationProvider​(NormalizationProvider normalizationProvider)
        Deprecated.
        Registers a NormalizationProvider, which allows to configure runtime classpath normalization.

        This can be used to ignore volatile data on the runtime classpath that does not influence the outcome of goals, e.g. test goals. For more information, please consult the user manual.

        Parameters:
        normalizationProvider - the normalization provider, must not be null
        Since:
        1.15