gradle
8.4

# action

abstract fun <T> action(buildAction: BuildAction<T>): BuildActionExecuter<T>(source)

Creates an executer which can be used to run the given action when the build has finished. The action is serialized into the build process and executed, then its result is serialized back to the caller.

Requires Gradle 1.8 or later.

#### Return

The builder.

#### Parameters

buildAction

The action to run.

<T>

The result type.

#### See also

action()

if you want to hook into different points of the build lifecycle.

abstract fun action(): BuildActionExecuter.Builder(source)

Creates a builder for an executer which can be used to run actions in different phases of the build. The actions are serialized into the build process and executed, then its result is serialized back to the caller.

Requires Gradle 4.8 or later.

#### Return

The builder.