api / org.gradle.api.artifacts / ConfigurationPublications / artifact

artifact

abstract fun artifact(notation: Any): Unit

Adds an outgoing artifact to this configuration. This artifact is included in all variants.

See org.gradle.api.artifacts.dsl.ArtifactHandler for details of the supported notations.

abstract fun artifact(notation: Any, configureAction: Action<in ConfigurablePublishArtifact>): Unit

Adds an outgoing artifact to this configuration, configuring it using the given action. This artifact is included in all variants.

See org.gradle.api.artifacts.dsl.ArtifactHandler for details of the supported notations.