@Incubating public interface MavenArtifact extends Buildable
MavenPublication.| Modifier and Type | Method and Description | 
|---|---|
| void | builtBy(Object... tasks)Registers some tasks which build this artifact. | 
| String | getClassifier()The classifier used to publish the artifact file. | 
| String | getExtension()The extension used to publish the artifact file, never  null. | 
| File | getFile()The actual file contents to publish. | 
| void | setClassifier(String classifier)Sets the classifier used to publish the artifact file. | 
| void | setExtension(String extension)Sets the extension used to publish the artifact file. | 
getBuildDependenciesString getExtension()
null.
 For an artifact without an extension, this value will be an empty String.void setExtension(String extension)
extension - The extension.@Nullable String getClassifier()
null value (the default) indicates that this artifact will be published without a classifier.void setClassifier(@Nullable String classifier)
classifier - The classifier.File getFile()
void builtBy(Object... tasks)
tasks - The tasks. These are evaluated as per Task.dependsOn(Object...).