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.

apply

open override fun apply(action: Action<in ObjectConfigurationAction>)(source)

Applies zero or more plugins or scripts.

The given closure is used to configure an ObjectConfigurationAction, which "builds" the plugin application.

This method differs from apply in that it allows methods of the configuration action to be invoked more than once.

Since

2.3

Parameters

action

the action to configure an ObjectConfigurationAction with before "executing" it

See also