Interface BuildAction<T>

  • Type Parameters:
    T - The type of result produced by this action.
    All Superinterfaces:
    java.io.Serializable

    public interface BuildAction<T>
    extends java.io.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.

    Since:
    1.8
    • Method Detail

      • execute

        T execute​(BuildController controller)
        Executes this action and returns the result.
        Parameters:
        controller - The controller to use to access and control the build.
        Returns:
        The result
        Since:
        1.8