Package org.gradle.api.artifacts
Interface ConfigurablePublishArtifact
- All Superinterfaces:
Buildable,PublishArtifact
A
PublishArtifact whose properties can be modified.-
Method Summary
Modifier and TypeMethodDescriptionRegisters some tasks which build this artifact.voidsetClassifier(String classifier) Sets the classifier of this artifact.voidsetExtension(String extension) Sets the extension of this artifact.voidSets the name of this artifact.voidSets the type of this artifact.Methods inherited from interface org.gradle.api.Buildable
getBuildDependenciesMethods inherited from interface org.gradle.api.artifacts.PublishArtifact
getClassifier, getDate, getExtension, getFile, getName, getType
-
Method Details
-
setName
Sets the name of this artifact.- Parameters:
name- The name. Should not be null.
-
setExtension
Sets the extension of this artifact.- Parameters:
extension- The extension. Should not be null.
-
setType
Sets the type of this artifact.- Parameters:
type- The type. Should not be null.
-
setClassifier
Sets the classifier of this artifact.- Parameters:
classifier- The classifier. May be null.
-
builtBy
Registers some tasks which build this artifact.- Parameters:
tasks- The tasks. These are evaluated as perTask.dependsOn(Object...).- Returns:
- this
-