# MavenArtifact

interface MavenArtifact : PublicationArtifact(source)

An artifact published as part of a MavenPublication.

## Functions

builtBy
Link copied to clipboard
abstract fun builtBy(tasks: Array<Any>)
Registers some tasks which build this artifact.
getBuildDependencies
Link copied to clipboard
abstract fun getBuildDependencies(): TaskDependency
Returns a dependency which contains the tasks which build this artifact.
getClassifier
Link copied to clipboard
@Optional
abstract fun getClassifier(): Property<String>
The classifier used to publish the artifact file.
getExtension
Link copied to clipboard
abstract fun getExtension(): Property<String>
The extension used to publish the artifact file.
getFile
Link copied to clipboard
abstract fun getFile(): Provider<RegularFile>
The actual file contents to publish.