For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

PublishArtifact

A PublishArtifact is an artifact produced by a project.

Since

0.7

Inheritors

Functions

Link copied to clipboard
Returns a dependency which contains the tasks which build this artifact.
Link copied to clipboard
@Nullable
abstract fun getClassifier(): @Nullable String
Returns the classifier of this published artifact, if any.
Link copied to clipboard
@Nullable
abstract fun getDate(): @Nullable Date
Returns the date that should be used when publishing this artifact.
Link copied to clipboard
abstract fun getExtension(): String
Returns the extension of this published artifact.
Link copied to clipboard
abstract fun getFile(): File
Returns the file of this artifact.
Link copied to clipboard
abstract fun getName(): String
Returns the name of the artifact.
Link copied to clipboard
abstract fun getType(): String
Returns the type of the published artifact.