Extending Gradle: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 5: Line 5:
=Overview=
=Overview=


The simplest way of extending Gradle is writing a custom task. The custom task can be declared in-line in the default build script [[build.gradle]] or in a separate build script that is included from the default build script. The custom task can also be define as an independent class exposed in a separate library that is then imported in [[build.gradle]].
The simplest way of extending Gradle is write a custom task. The custom task can be declared in-line in the default build script [[build.gradle]] or in a separate build script that is included from the default build script. The custom task can also be define as an independent class exposed in a separate library that is then imported in [[build.gradle]].


=Writing a Script Plugin=
=Writing a Script Plugin=
=Writing an Object Plugin=
=Writing an Object Plugin=

Revision as of 20:42, 23 September 2020

Internal

Overview

The simplest way of extending Gradle is write a custom task. The custom task can be declared in-line in the default build script build.gradle or in a separate build script that is included from the default build script. The custom task can also be define as an independent class exposed in a separate library that is then imported in build.gradle.

Writing a Script Plugin

Writing an Object Plugin