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.

ModuleVersionSelector

Selects a module version. If you need to change this interface, you're probably doing it wrong: it is superseded by org.gradle.api.artifacts.component.ModuleComponentSelector, so check this first, and only add methods here if it's for bridging.

Since

1.0

Inheritors

Functions

Link copied to clipboard
abstract fun getGroup(): String
The group of the module.
Link copied to clipboard
abstract fun getModule(): ModuleIdentifier
The module identifier of the component.
Link copied to clipboard
abstract fun getName(): String
The name of the module.
Link copied to clipboard
@Nullable
abstract fun getVersion(): @Nullable String
The version of the module.
Link copied to clipboard
To match strictly means that the given identifier needs to have equal group, module name and version.