MavenArtifact

An artifact published as part of a MavenPublication.

Functions

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