HasAttributes, HasConfigurableAttributes<VariantMetadata>@Incubating public interface VariantMetadata extends HasConfigurableAttributes<VariantMetadata>
ComponentMetadataDetails.withVariant(String, Action).| Modifier and Type | Method | Description |
|---|---|---|
void |
withCapabilities(Action<? super MutableCapabilitiesMetadata> action) |
Register a rule that modifies the capabilities of this variant.
|
void |
withDependencies(Action<? super DirectDependenciesMetadata> action) |
Register a rule that modifies the dependencies of this variant.
|
void |
withDependencyConstraints(Action<? super DependencyConstraintsMetadata> action) |
Register a rule that modifies the dependency constraints of this variant.
|
getAttributesattributesvoid withDependencies(Action<? super DirectDependenciesMetadata> action)
action - the action that performs the dependencies adjustmentvoid withDependencyConstraints(Action<? super DependencyConstraintsMetadata> action)
action - the action that performs the dependency constraints adjustmentvoid withCapabilities(Action<? super MutableCapabilitiesMetadata> action)
action - the action that performs the capabilities adjustment