Class MavenProjectInput


  • public class MavenProjectInput
    extends Object
    MavenProjectInput
    • Field Detail

      • CACHE_IMPLEMENTATION_VERSION

        public static final String CACHE_IMPLEMENTATION_VERSION
        Version of cache implementation. It is recommended to change to simplify remote cache maintenance
        See Also:
        Constant Field Values
    • Method Detail

      • isSkipCache

        public static boolean isSkipCache​(org.apache.maven.project.MavenProject project)
        Skip lookup on a per-project level via a property to force module rebuild e.g.<maven.build.cache.skipCache>true<maven.build.cache.skipCache/>
        Parameters:
        project -
        Returns:
      • isRestoreGeneratedSources

        public static boolean isRestoreGeneratedSources​(org.apache.maven.project.MavenProject project)
        Allow skipping generated sources restoration on a per-project level via a property (which defaults to true) e.g. <maven.build.cache.restoreGeneratedSources>false<maven.build.cache.restoreGeneratedSources/>.
        Parameters:
        project -
        Returns:
      • isRestoreOnDiskArtifacts

        public static boolean isRestoreOnDiskArtifacts​(org.apache.maven.project.MavenProject project)
        Allow skipping artifacts restoration on a per-project level via a property (which defaults to true) e.g. <maven.build.cache.restoreOnDiskArtifacts>false<maven.build.cache.restoreOnDiskArtifacts/>.
        Parameters:
        project -
        Returns:
      • isCacheDisabled

        public static boolean isCacheDisabled​(org.apache.maven.project.MavenProject project)
        Allow disabling caching entirely on a per-project level via a property - both artifact lookup and upload Defaults to false <maven.build.cache.enabled>false<maven.build.cache.enabled/>
        Parameters:
        project -
        Returns: