api / org.gradle.plugin.management / PluginResolutionStrategy

PluginResolutionStrategy

@Incubating interface PluginResolutionStrategy

Allows modification of PluginRequests before they are resolved.

Since
3.5

Functions

eachPlugin

abstract fun eachPlugin(rule: Action<in PluginResolveDetails>): Unit

Adds an action that is executed for each plugin that is resolved. The PluginResolveDetails parameter contains information about the plugin that was requested and allows the rule to modify which plugin will actually be resolved.