public interface Dependency
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MAVEN_PATH_FORMAT |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
getArtifactId()
The artifact id of the dependency.
|
@Nullable java.lang.String |
getClassifier()
The classifier for the dependency artifact, if any.
|
default @NotNull java.lang.String |
getFileName()
Returns the file name for the end of the maven path.
|
@NotNull java.lang.String |
getGroupId()
The group id of the dependency.
|
@NotNull java.lang.String |
getHash()
The hash of the dependency, this is checked against the downloaded file.
|
@NotNull java.lang.String |
getHashingAlgorithm()
The hashing algorithm used for the
getHash(). |
default @NotNull java.lang.String |
getMavenArtifact()
Gets the group id, artifact id, version and classifier (if specified) seperated by semicolons.
|
default @NotNull java.lang.String |
getMavenPath()
The path to this dependency on a maven repository, without the protocol, domain or slash at the beginning.
|
@Nullable java.lang.String |
getSnapshotVersion()
The timestamped snapshot version.
|
default @NotNull java.lang.String |
getStoredFileName()
Returns the file name when stored to disk.
|
@NotNull java.lang.String |
getVersion()
The version of the dependency.
|
boolean |
isSnapshot()
If this is a snapshot dependency.
|
static final java.lang.String MAVEN_PATH_FORMAT
@NotNull @NotNull java.lang.String getGroupId()
@NotNull @NotNull java.lang.String getArtifactId()
@NotNull @NotNull java.lang.String getVersion()
@Nullable @Nullable java.lang.String getClassifier()
null.@Nullable @Nullable java.lang.String getSnapshotVersion()
null if this isn't a snapshot dependency.isSnapshot()@NotNull @NotNull java.lang.String getHash()
getHashingAlgorithm()@NotNull @NotNull java.lang.String getHashingAlgorithm()
getHash().getHash()boolean isSnapshot()
@NotNull default @NotNull java.lang.String getFileName()
@NotNull default @NotNull java.lang.String getStoredFileName()
@NotNull default @NotNull java.lang.String getMavenPath()
@NotNull default @NotNull java.lang.String getMavenArtifact()
:)