ComponentMetadata, HasAttributes, HasConfigurableAttributes<ComponentMetadataDetails>@NonExtensible public interface ComponentMetadataDetails extends ComponentMetadata, HasConfigurableAttributes<ComponentMetadataDetails>
ComponentMetadataHandler.| Modifier and Type | Method | Description |
|---|---|---|
void |
allVariants(Action<? super VariantMetadata> action) |
Add a rule for adjusting all variants of a component.
|
void |
belongsTo(java.lang.Object notation) |
Declares that this component belongs to a virtual platform, which should be
considered during dependency resolution.
|
void |
belongsTo(java.lang.Object notation,
boolean virtual) |
Declares that this component belongs to a platform, which should be
considered during dependency resolution.
|
void |
setChanging(boolean changing) |
Sets whether the component is changing or immutable.
|
void |
setStatus(java.lang.String status) |
Sets the status of the component.
|
void |
setStatusScheme(java.util.List<java.lang.String> statusScheme) |
Sets the status scheme of the component.
|
void |
withVariant(java.lang.String name,
Action<? super VariantMetadata> action) |
Add a rule for adjusting an existing variant of the component.
|
getId, getStatus, getStatusScheme, isChanginggetAttributesattributesvoid setChanging(boolean changing)
changing - whether the component is changing or immutablevoid setStatus(java.lang.String status)
ComponentMetadata.getStatusScheme().status - the status of the componentvoid setStatusScheme(java.util.List<java.lang.String> statusScheme)
statusScheme - the status scheme of the component@Incubating void withVariant(java.lang.String name, Action<? super VariantMetadata> action)
name - name of the variant to adjust (e.g. 'compile')action - the action to modify the variant@Incubating void allVariants(Action<? super VariantMetadata> action)
action - the action to be executed on each variant.@Incubating void belongsTo(java.lang.Object notation)
notation - the coordinates of the owner@Incubating void belongsTo(java.lang.Object notation, boolean virtual)
notation - the coordinates of the ownervirtual - must be set to true if the platform is a virtual platform, or false if it's a published platform