artifact

Creates an artifact using the provided configuration block and adds it to the task.

Return

The created artifact.

Parameters

block

The lambda to configure the artifact.


Creates an artifact using the provided Java-friendly Consumer and adds it to the task.

Return

The created artifact.

Parameters

block

The consumer to configure the artifact.