ComponentMetadataDetails

Describes a resolved component's metadata, which typically originates from a component descriptor (Ivy file, Maven POM). Some parts of the metadata can be changed via metadata rules (see org.gradle.api.artifacts.dsl.ComponentMetadataHandler.

Since

1.8

Functions

Link copied to clipboard
abstract fun addVariant(name: String, action: Action<in VariantMetadata>)
Add a rule for adding a new empty variant to the component.
abstract fun addVariant(name: String, base: String, action: Action<in VariantMetadata>)
Add a rule for adding a new variant to the component.
Link copied to clipboard
abstract fun allVariants(action: Action<in VariantMetadata>)
Add a rule for adjusting all variants of a component.
Link copied to clipboard
abstract fun attributes(action: Action<in AttributeContainer>): SELF
Link copied to clipboard
abstract fun belongsTo(notation: Any)
Declares that this component belongs to a virtual platform, which should be considered during dependency resolution.
abstract fun belongsTo(notation: Any, virtual: Boolean)
Declares that this component belongs to a platform, which should be considered during dependency resolution.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getStatus(): String
Link copied to clipboard
abstract fun getStatusScheme(): List<String>
Link copied to clipboard
abstract fun isChanging(): Boolean
Link copied to clipboard
abstract fun maybeAddVariant(name: String, base: String, action: Action<in VariantMetadata>)
This is the lenient version of addVariant.
Link copied to clipboard
abstract fun setChanging(changing: Boolean)
Sets whether the component is changing or immutable.
Link copied to clipboard
abstract fun setStatus(status: String)
Sets the status of the component.
Link copied to clipboard
abstract fun setStatusScheme(statusScheme: List<String>)
Sets the status scheme of the component.
Link copied to clipboard
abstract fun withVariant(name: String, action: Action<in VariantMetadata>)
Add a rule for adjusting an existing variant of the component.