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.

artifact

abstract fun artifact(source: Any): IvyArtifact(source)

Creates and adds a IvyArtifact to the set. The semantics of this method are the same as artifact.

Since

1.5

Parameters

source

The source of the artifact content.


abstract fun artifact(source: Any, config: Action<in IvyArtifact>): IvyArtifact(source)

Creates and adds a IvyArtifact to the set, which is configured by the associated action. The semantics of this method are the same as artifact.

Since

1.5

Parameters

source

The source of the artifact.

config

An action to configure the values of the constructed IvyArtifact.