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.

modules

abstract fun modules(configureAction: Action<in ComponentModuleMetadataHandler>)(source)

Configures module metadata for this project.

This method executes the given action against the org.gradle.api.artifacts.dsl.ComponentModuleMetadataHandler for this project.

Since

2.2

Parameters

configureAction

the action to use to configure module metadata