|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
org.gradle.api.Buildableorg.gradle.api.publish.ivy.IvyArtifact
@Incubating public interface IvyArtifact extends Buildable
An artifact published as part of a IvyPublication.
| Method Summary | |
|---|---|
void
|
builtBy(Object... tasks)
Registers some tasks which build this artifact. |
String
|
getClassifier()
The classifier used to publish the artifact file. |
String
|
getConf()
A comma separated list of public configurations in which this artifact is published. |
String
|
getExtension()
The extension used to publish the artifact file, never |
File
|
getFile()
The actual file contents to publish. |
String
|
getName()
The name used to publish the artifact file, never |
String
|
getType()
The type used to publish the artifact file, never |
void
|
setClassifier(String classifier)
Sets the classifier used to publish the artifact file. |
void
|
setConf(String conf)
Sets a comma separated list of public configurations in which this artifact is published. |
void
|
setExtension(String extension)
Sets the extension used to publish the artifact file. |
void
|
setName(String name)
Sets the name used to publish the artifact file. |
void
|
setType(String type)
Sets the type used to publish the artifact file. |
| Methods inherited from interface Buildable | |
|---|---|
| getBuildDependencies |
| Method Detail |
|---|
public void builtBy(Object... tasks)
tasks - The tasks. These are evaluated as per Task.dependsOn.
@Nullable public String getClassifier()
null value (the default) indicates that this artifact will be published without a classifier.
@Nullable public String getConf()
null value (the default) indicates that this artifact will be published without a conf attribute.
public String getExtension()
null.
For an artifact without an extension, this value will be an empty String.
public File getFile()
public String getName()
null.
Defaults to the name of the module that this artifact belongs to.
public String getType()
null.
public void setClassifier(@Nullable String classifier)
classifier - The classifier.
public void setConf(@Nullable String conf)
conf - The value of 'conf' for this artifact.
public void setExtension(String extension)
extension - The extension.
public void setName(String name)
name - The name.
public void setType(String type)
type - The type.
Gradle API 1.5