Interface PluginCache


  • public interface PluginCache
    Plugin Cache methods.
    Since:
    2.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.gradle.api.provider.Provider<java.io.File> getPluginCacheDir()
      Location of plugin cache directory.
      org.gradle.api.provider.Provider<java.lang.Integer> getUseLockWithTimeout()
      Indicates whether access to the plugin cache dir should be locked between operations that writes to the cache directory
    • Method Detail

      • getPluginCacheDir

        org.gradle.api.provider.Provider<java.io.File> getPluginCacheDir()
        Location of plugin cache directory.
        Returns:
        Location of cache directory as a file provider.
      • getUseLockWithTimeout

        org.gradle.api.provider.Provider<java.lang.Integer> getUseLockWithTimeout()
        Indicates whether access to the plugin cache dir should be locked between operations that writes to the cache directory
        Returns:
        Returns a timeout in millseconds. If the provider is empty or the values is less than 1, no locking will be performed.