Class OExternalDependency

  • Direct Known Subclasses:
    LocalOExternalDependency

    public class OExternalDependency
    extends java.lang.Object
    Represents a pre packaged dependency from an external source like gradle/maven cache or the filesystem
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getMavenCoordsForValidation

        public java.lang.String getMavenCoordsForValidation()
        Return the maven coordinates used for version validation. This excludes the classifier and packaging attributes
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getGroup

        public java.lang.String getGroup()
        Returns the group of the dependency.
      • getName

        public java.lang.String getName()
        Returns the name of the dependency.
      • getVersionless

        public VersionlessDependency getVersionless()
        Returns the VersionlessDependency of the dependency.
      • getAsGradleDependency

        public org.gradle.api.artifacts.Dependency getAsGradleDependency()
        Returns the dependency as a Gradle Dependency.
      • getVersion

        public java.lang.String getVersion()
        Returns the version of the dependency.
      • getRealDependencyFile

        public java.io.File getRealDependencyFile()
        Returns the real artifact file of the dependency.
      • getRealSourceFile

        public java.util.Optional<java.io.File> getRealSourceFile()
        Gets the real sources jar file for the dependency.
      • getGradleSha

        public static java.lang.String getGradleSha​(java.io.File file)
      • getPackaging

        public java.lang.String getPackaging()
        Returns the packaging of the the dependency: jar, aar, pex
      • getMavenCoords

        public java.lang.String getMavenCoords()
        Returns the maven coordinates of the the dependency.
      • getTargetName

        public java.lang.String getTargetName()
        Returns the target name of the dependency.
      • getBaseTargetName

        public java.lang.String getBaseTargetName()
        Returns the target name of the dependency without packaging.
      • getVersionlessTargetName

        public java.lang.String getVersionlessTargetName()
        Returns the versionless target name of the dependency.
      • getTargetPath

        public java.lang.String getTargetPath()
        Returns the target path of the dependency.
      • getSourceFileName

        public java.lang.String getSourceFileName()
        Returns the cached file name of the sources jar file.
      • getDependencyFileName

        public java.lang.String getDependencyFileName()
        Returns the cached file name of the artifact of the dependency.
      • enableJetifier

        public boolean enableJetifier()
        Returns true if this dependency needs to be jetified.
      • addExcludeRules

        public void addExcludeRules​(java.util.Set<org.gradle.api.artifacts.ExcludeRule> excludeRules)
      • updateFirstLevel

        public void updateFirstLevel​(boolean firstLevel)
      • isFirstLevel

        public boolean isFirstLevel()