Class ArtifactCacheLocator


  • public class ArtifactCacheLocator
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.util.Optional<java.net.URI> MAVEN_LOCAL  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.net.URI> locateGradleJarsCache()  
      java.util.Optional<java.net.URI> locateGradleModulesCache()  
      java.util.Optional<java.net.URI> locateMavenLocal()
      Looks for a local Maven repository in one of two standard locations on the file system: The default local Maven repository location: $HOME/.m2/repository/ A path referenced by an $M2_REPO_ENV environment variable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MAVEN_LOCAL

        protected static final java.util.Optional<java.net.URI> MAVEN_LOCAL
    • Constructor Detail

      • ArtifactCacheLocator

        public ArtifactCacheLocator()
    • Method Detail

      • locateMavenLocal

        public java.util.Optional<java.net.URI> locateMavenLocal()
        Looks for a local Maven repository in one of two standard locations on the file system:
        1. The default local Maven repository location: $HOME/.m2/repository/
        2. A path referenced by an $M2_REPO_ENV environment variable
        Returns:
        Either the location on the file system of a local Maven repository, or Optional.empty() if none was found.
      • locateGradleJarsCache

        public java.util.Optional<java.net.URI> locateGradleJarsCache()
      • locateGradleModulesCache

        public java.util.Optional<java.net.URI> locateGradleModulesCache()