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.

ComponentModuleMetadataDetails

Contains and allows configuring component module metadata information. For information and examples please see org.gradle.api.artifacts.dsl.ComponentModuleMetadataHandler

Since

2.2

Functions

Link copied to clipboard
abstract fun getId(): ModuleIdentifier
The identifier of the module.
Link copied to clipboard
@Nullable
abstract fun getReplacedBy(): @Nullable ModuleIdentifier
The identifier of module that replaces this module.
Link copied to clipboard
abstract fun replacedBy(moduleNotation: Any)
Configures a replacement module for this module.
abstract fun replacedBy(moduleNotation: Any, @Nullable reason: @Nullable String)
Configures a replacement module for this module and provides an explanation for the replacement.