Class DownloadedDependency


  • public class DownloadedDependency
    extends java.lang.Object
    Downloaded Dependency
    • Constructor Summary

      Constructors 
      Constructor Description
      DownloadedDependency​(org.gradle.api.artifacts.ResolvedArtifact artifact)
      Public constructor
      DownloadedDependency​(org.gradle.api.artifacts.ResolvedArtifact artifact, boolean stripVersion, boolean separateByGroupId, java.lang.String configuration, java.nio.file.Path downloadPath)
      Public constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(DownloadedDependency downloadedDependency)
      Compare a downloaded dependency by its group, artifact, version, extension and the classifier
      boolean findIn​(java.util.List<DownloadedDependency> baseDependencies)
      Find a dependency within a list of dependencies
      void setReason​(java.lang.String reason)
      Sets the reason and parses it with semicolon for attribute's capture.
      • Methods inherited from class java.lang.Object

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

      • DownloadedDependency

        public DownloadedDependency​(org.gradle.api.artifacts.ResolvedArtifact artifact)
        Public constructor
        Parameters:
        artifact - resolved artifact
      • DownloadedDependency

        public DownloadedDependency​(org.gradle.api.artifacts.ResolvedArtifact artifact,
                                    boolean stripVersion,
                                    boolean separateByGroupId,
                                    java.lang.String configuration,
                                    java.nio.file.Path downloadPath)
        Public constructor
        Parameters:
        artifact - resolved artifact
        stripVersion - strip version
        separateByGroupId - separate by group id
        configuration - configuration
        downloadPath - download path
    • Method Detail

      • findIn

        public boolean findIn​(java.util.List<DownloadedDependency> baseDependencies)
        Find a dependency within a list of dependencies
        Parameters:
        baseDependencies - base dependencies
        Returns:
        true if found.
      • compareTo

        public int compareTo​(DownloadedDependency downloadedDependency)
        Compare a downloaded dependency by its group, artifact, version, extension and the classifier
        Parameters:
        downloadedDependency - the downloaded dependency
        Returns:
        0 if it's equal
      • setReason

        public void setReason​(java.lang.String reason)
        Sets the reason and parses it with semicolon for attribute's capture.
        Parameters:
        reason - a series of attributes for the plugin to process. i.e. decompress and target.