api / org.gradle.api.publish / PublicationArtifact

PublicationArtifact

interface PublicationArtifact : Buildable

An artifact published as part of a Publication.

Since
4.8

Functions

builtBy

abstract fun builtBy(vararg tasks: Any): Unit

Registers some tasks which build this artifact.

getFile

abstract fun getFile(): File

The actual file contents to publish.

Inherited Functions

getBuildDependencies

abstract fun getBuildDependencies(): TaskDependency

Returns a dependency which contains the tasks which build this artifact. All Buildable implementations must ensure that the returned dependency object is live, so that it tracks changes to the dependencies of this buildable.

Inheritors

IvyArtifact

interface IvyArtifact : PublicationArtifact

An artifact published as part of a IvyPublication.

MavenArtifact

interface MavenArtifact : PublicationArtifact

An artifact published as part of a MavenPublication.