Package org.gradle.api.artifacts
Interface DependencyArtifact
public interface DependencyArtifact
Data class that represents an artifact included in a
Dependency
.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returns the classifier of this artifact.@Nullable String
Returns the extension of this artifact.getName()
Returns the name of this artifact.getType()
Returns the type of this artifact.@Nullable String
getUrl()
Returns a URL under which this artifact can be retrieved.void
setClassifier
(@Nullable String classifier) Sets the classifier of this artifact.void
setExtension
(@Nullable String extension) Sets the extension of this artifact.void
Sets the name of this artifact.void
Sets the type of this artifact.void
Sets the URL for this artifact.
-
Field Details
-
DEFAULT_TYPE
- See Also:
-
-
Method Details
-
getName
String getName()Returns the name of this artifact. -
setName
Sets the name of this artifact. -
getType
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:
-
setType
Sets the type of this artifact. -
getExtension
@Nullable 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:
-
setExtension
Sets the extension of this artifact. -
getClassifier
@Nullable String getClassifier()Returns the classifier of this artifact. -
setClassifier
Sets the classifier of this artifact. -
getUrl
@Nullable String getUrl()Returns a URL under which this artifact can be retrieved. If not specified the user repositories are used for retrieving. -
setUrl
Sets the URL for this artifact.
-