Interface MavenArtifact
- All Superinterfaces:
Buildable
An artifact published as part of a
MavenPublication.-
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters some tasks which build this artifact.The classifier used to publish the artifact file.The extension used to publish the artifact file, nevernull.getFile()The actual file contents to publish.voidsetClassifier(String classifier) Sets the classifier used to publish the artifact file.voidsetExtension(String extension) Sets the extension used to publish the artifact file.Methods inherited from interface Buildable
getBuildDependencies
-
Method Details
-
getExtension
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
Sets the extension used to publish the artifact file.- Parameters:
extension- The extension.
-
getClassifier
The classifier used to publish the artifact file. Anullvalue (the default) indicates that this artifact will be published without a classifier. -
setClassifier
Sets the classifier used to publish the artifact file.- Parameters:
classifier- The classifier.
-
getFile
File getFile()The actual file contents to publish. -
builtBy
Registers some tasks which build this artifact.- Parameters:
tasks- The tasks. These are evaluated as perTask.dependsOn(Object...).
-