gradle
8.6

# VariantMetadata

interface VariantMetadata : HasConfigurableAttributes<SELF> (source)

Represents the metadata of one variant of a component, see withVariant.

## Functions

attributes
Link copied to clipboard
abstract fun attributes(action: Action<out Any>): SELF
getAttributes
Link copied to clipboard
abstract fun getAttributes(): AttributeContainer
withCapabilities
Link copied to clipboard
abstract fun withCapabilities(action: Action<out Any>)
Register a rule that modifies the capabilities of this variant.
withDependencies
Link copied to clipboard
abstract fun withDependencies(action: Action<out Any>)
Register a rule that modifies the dependencies of this variant.
withDependencyConstraints
Link copied to clipboard
abstract fun withDependencyConstraints(action: Action<out Any>)
Register a rule that modifies the dependency constraints of this variant.
withFiles
Link copied to clipboard
abstract fun withFiles(action: Action<out Any>)
Register a rule that modifies the artifacts of this variant.