Package org.gradle.api.publish.ivy
Interface IvyArtifact
-
- All Superinterfaces:
Buildable,PublicationArtifact
public interface IvyArtifact extends PublicationArtifact
An artifact published as part of aIvyPublication.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetClassifier()The classifier used to publish the artifact file.java.lang.StringgetConf()A comma separated list of public configurations in which this artifact is published.java.lang.StringgetExtension()The extension used to publish the artifact file, nevernull.java.lang.StringgetName()The name used to publish the artifact file, nevernull.java.lang.StringgetType()The type used to publish the artifact file, nevernull.voidsetClassifier(java.lang.String classifier)Sets the classifier used to publish the artifact file.voidsetConf(java.lang.String conf)Sets a comma separated list of public configurations in which this artifact is published.voidsetExtension(java.lang.String extension)Sets the extension used to publish the artifact file.voidsetName(java.lang.String name)Sets the name used to publish the artifact file.voidsetType(java.lang.String type)Sets the type used to publish the artifact file.-
Methods inherited from interface org.gradle.api.Buildable
getBuildDependencies
-
Methods inherited from interface org.gradle.api.publish.PublicationArtifact
builtBy, getFile
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
The name used to publish the artifact file, nevernull. Defaults to the name of the module that this artifact belongs to.
-
setName
void setName(java.lang.String name)
Sets the name used to publish the artifact file.- Parameters:
name- The name.
-
getType
java.lang.String getType()
The type used to publish the artifact file, nevernull.
-
setType
void setType(java.lang.String type)
Sets the type used to publish the artifact file.- Parameters:
type- The type.
-
getExtension
java.lang.String getExtension()
The extension used to publish the artifact file, nevernull. For an artifact without an extension, this value will be an empty String.
-
setExtension
void setExtension(java.lang.String extension)
Sets the extension used to publish the artifact file.- Parameters:
extension- The extension.
-
getClassifier
@Nullable java.lang.String getClassifier()
The classifier used to publish the artifact file. Anullvalue (the default) indicates that this artifact will be published without a classifier.
-
setClassifier
void setClassifier(@Nullable java.lang.String classifier)Sets the classifier used to publish the artifact file.- Parameters:
classifier- The classifier.
-
getConf
@Nullable java.lang.String getConf()
A comma separated list of public configurations in which this artifact is published. The '*' wildcard is used to designate that the artifact is published in all public configurations. Anullvalue (the default) indicates that this artifact will be published without a conf attribute.- Returns:
- The value of 'conf' for this artifact.
-
setConf
void setConf(@Nullable java.lang.String conf)Sets a comma separated list of public configurations in which this artifact is published. The '*' wildcard can be used to designate that the artifact is published in all public configurations.- Parameters:
conf- The value of 'conf' for this artifact.
-
-