Gradle Task

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

A Task represents a single atomic piece of work for a build, such as compiling classes or generating javadoc. A build consists in executing a sequence of tasks in succession. Tasks may be explicitly declared in build.gradle using Project's task() method. As an example, of the simplest possible task declarations is:

task sample {
    println 'this is a simple task'
}

Plugins that have been applied to the project may come with their own tasks.

Task Types

TODO: https://docs.gradle.org/current/dsl/#N10376