Package org.gradle.api.artifacts
Interface DependencyArtifact
-
public interface DependencyArtifactData class that represents an artifact included in aDependency.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetClassifier()Returns the classifier of this artifact.java.lang.StringgetExtension()Returns the extension of this artifact.java.lang.StringgetName()Returns the name of this artifact.java.lang.StringgetType()Returns the type of this artifact.java.lang.StringgetUrl()Returns a URL under which this artifact can be retrieved.voidsetClassifier(java.lang.String classifier)Sets the classifier of this artifact.voidsetExtension(java.lang.String extension)Sets the extension of this artifact.voidsetName(java.lang.String name)Sets the name of this artifact.voidsetType(java.lang.String type)Sets the type of this artifact.voidsetUrl(java.lang.String url)Sets the URL for this artifact.
-
-
-
Field Detail
-
DEFAULT_TYPE
static final java.lang.String DEFAULT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of this artifact.
-
setName
void setName(java.lang.String name)
Sets the name of this artifact.
-
getType
java.lang.String getType()
Returns the type of this artifact. Often the type is the same as the extension, but sometimes this is not the case. For example for an ivy XML module descriptor, the type is ivy and the extension is xml.- See Also:
getExtension()
-
setType
void setType(java.lang.String type)
Sets the type of this artifact.
-
getExtension
@Nullable java.lang.String getExtension()
Returns the extension of this artifact. Often the extension is the same as the type, but sometimes this is not the case. For example for an ivy XML module descriptor, the type is ivy and the extension is xml.- See Also:
getType()
-
setExtension
void setExtension(@Nullable java.lang.String extension)Sets the extension of this artifact.
-
getClassifier
@Nullable java.lang.String getClassifier()
Returns the classifier of this artifact.
-
setClassifier
void setClassifier(@Nullable java.lang.String classifier)Sets the classifier of this artifact.
-
getUrl
@Nullable java.lang.String getUrl()
Returns a URL under which this artifact can be retrieved. If not specified the user repositories are used for retrieving.
-
setUrl
void setUrl(@Nullable java.lang.String url)Sets the URL for this artifact.
-
-