@Internal
public final class Artifact
extends java.lang.Object
An artifact must have a group, a name, and a version. Also, it may have a classifier and an extension.
Modifier and Type | Class and Description |
---|---|
static class |
Artifact.Builder
A builder for the
Artifact instances. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SPINE_TOOLS_GROUP
The artifact group used for Spine tools.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
fileSafeId()
Prints this spec in the same way as
notation() but with
_ (underscore symbol) instead of any other separator characters. |
static Artifact |
from(org.gradle.api.artifacts.Dependency dependency)
Creates a new
Artifact from the given Dependency |
int |
hashCode() |
static Artifact.Builder |
newBuilder()
Creates a new instance of
Builder for Artifact instances. |
java.lang.String |
notation()
Prints this spec into a single string.
|
java.lang.String |
toString() |
public static final java.lang.String SPINE_TOOLS_GROUP
public static Artifact from(org.gradle.api.artifacts.Dependency dependency)
Artifact
from the given Dependency
dependency
- the Gradle dependencyArtifact
public java.lang.String notation()
The format of the notation is: "group:name:version:classifier@extension"
.
public java.lang.String fileSafeId()
notation()
but with
_
(underscore symbol) instead of any other separator characters.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static Artifact.Builder newBuilder()
Builder
for Artifact
instances.Builder