Gradle Task: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:
=Overview=
=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.
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 declared in [[build.gradle]]. One of the simplest possible task declarations is:
 
<syntaxhighlight lang='groovy'>
task sample {
    println 'this is a simple task'
}
</syntaxhighlight>


=Task Types=
=Task Types=


<font color=darkgray>TODO: https://docs.gradle.org/current/dsl/#N10376</font>
<font color=darkgray>TODO: https://docs.gradle.org/current/dsl/#N10376</font>

Revision as of 22:46, 17 May 2018

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 declared in build.gradle. One of the simplest possible task declarations is:

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

Task Types

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