task

abstract fun task(value: String)(source)

Defines a task that should be executed by Maven. A task in this context refers a lifecycle such as clean, a lifecycle phase such as package or a goal such as resources:testResources.

This function can be called multiple times to add more than one task. The order of the tasks as they are defined is preserved when calling the Maven executable.

Parameters

value

The name of the task to add to the execution.