@Incubating public interface VariantMetadata extends HasConfigurableAttributes<VariantMetadata>
ComponentMetadataDetails.withVariant(String, Action)
.Modifier and Type | Method and Description |
---|---|
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.
|
attributes
getAttributes
void 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 adjustment