gradle
8.3

# ConfigurationVariant

interface ConfigurationVariant : Named, HasConfigurableAttributes<SELF>

Represents some variant of an outgoing configuration.

## Functions

artifact
Link copied to clipboard
abstract fun artifact(notation: Any)
Adds an artifact to this variant.
abstract fun artifact(notation: Any, configureAction: Action<out Any>)
Adds an artifact to this variant, configuring it using the given action.
attributes
Link copied to clipboard
abstract fun attributes(action: Action<out Any>): SELF
getArtifacts
Link copied to clipboard
abstract fun getArtifacts(): PublishArtifactSet
Returns the artifacts associated with this variant.
getAttributes
Link copied to clipboard
abstract fun getAttributes(): AttributeContainer
getDescription
Link copied to clipboard
@Incubating
abstract fun getDescription(): Optional<String>
Returns an optional note describing this variant.
getName
Link copied to clipboard
abstract fun getName(): String