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.

artifacts

abstract fun artifacts(provider: Provider<out Iterable<out Any>>)(source)

Lazily adds a collection of outgoing artifacts to this configuration. These artifacts are included in all variants.

Since

7.4

Parameters

provider

The provider of the artifacts to add.


abstract fun artifacts(provider: Provider<out Iterable<out Any>>, configureAction: Action<in ConfigurablePublishArtifact>)(source)

Lazily adds a collection of outgoing artifacts to this configuration, configuring each artifact using the given action. These artifacts are included in all variants.

Since

7.4

Parameters

provider

The provider of the artifacts to add.