public class DownloadedDependency
extends java.lang.Object
| Constructor and 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
|
| Modifier and Type | Method and 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.
|
public DownloadedDependency(org.gradle.api.artifacts.ResolvedArtifact artifact)
artifact - resolved artifactpublic DownloadedDependency(org.gradle.api.artifacts.ResolvedArtifact artifact,
boolean stripVersion,
boolean separateByGroupId,
java.lang.String configuration,
java.nio.file.Path downloadPath)
artifact - resolved artifactstripVersion - strip versionseparateByGroupId - separate by group idconfiguration - configurationdownloadPath - download pathpublic boolean findIn(java.util.List<DownloadedDependency> baseDependencies)
baseDependencies - base dependenciespublic int compareTo(DownloadedDependency downloadedDependency)
downloadedDependency - the downloaded dependencypublic void setReason(java.lang.String reason)
reason - a series of attributes for the plugin to process. i.e. decompress and target.