api / org.gradle.tooling / BuildAction

BuildAction

interface BuildAction<T : Any> : Serializable

An action that executes against a Gradle build and produces a result of type T.

You can execute a BuildAction using the ProjectConnection#action(BuildAction) method.

Parameters

- The type of result produced by this action.

Since
1.8

Functions

execute

abstract fun execute(controller: BuildController): T

Executes this action and returns the result.