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.

ConfigurationVariant

Represents some variant of an outgoing configuration.

Since

3.3

Functions

Link copied to clipboard
abstract fun artifact(notation: Any)
Adds an artifact to this variant.
abstract fun artifact(notation: Any, configureAction: Action<in ConfigurablePublishArtifact>)
Adds an artifact to this variant, configuring it using the given action.
Link copied to clipboard
abstract fun attributes(action: Action<in AttributeContainer>): SELF
Configure the attribute container that provides the attributes associated with this domain object.
Link copied to clipboard
Returns the artifacts associated with this variant.
Link copied to clipboard
Returns the attributes
Link copied to clipboard
Returns an optional note describing this variant.
Link copied to clipboard
abstract fun getName(): String
The object's name.