For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

ComponentMetadataContext

Provides access to component metadata from a ComponentMetadataRule.

Since

4.9

Functions

Link copied to clipboard
@Nullable
abstract fun <T> getDescriptor(descriptorClass: Class<T>): @Nullable T
Used to access a specific descriptor format.
Link copied to clipboard
Link copied to clipboard
@NonNull
abstract fun getDetails(): @NonNull ComponentMetadataDetails
Returns the details.