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.

whenPluginAdded

abstract fun whenPluginAdded(action: Action<in T>): Action<in T>(source)

Adds an Action to be executed when a plugin is added to this collection.

Return

the supplied action

Since

0.7

Parameters

action

The action to be executed


abstract fun whenPluginAdded(closure: Closure)(source)

Adds a closure to be called when a plugin is added to this collection. The plugin is passed to the closure as the parameter.

Since

0.7

Parameters

closure

The closure to be called