Standard Gradle plugins
There are a number of plugins included in the Gradle distribution. These are listed below.
Language plugins
These plugins add support for various languages which can be compiled for and executed in the JVM.
Plugin Id | Automatically applies | Description |
---|---|---|
|
Adds Java compilation, testing and bundling capabilities to a project. It serves as the basis for many of the other Gradle plugins. See also this tutorial on Java projects. |
|
|
Adds support for building Groovy projects. See also this tutorial for Groovy projects. |
|
|
Adds support for building Scala projects. |
|
|
Adds support for generating parsers using Antlr. |
Incubating language plugins
These plugins add support for various languages:
Plugin Id | Automatically applies | Description |
---|---|---|
- |
Adds native assembly language capabilities to a project. |
|
- |
Adds C source compilation capabilities to a project. |
|
- |
Adds C++ source compilation capabilities to a project. |
|
- |
Adds Objective-C source compilation capabilities to a project. |
|
- |
Adds Objective-C++ source compilation capabilities to a project. |
|
- |
Adds support for including Windows resources in native binaries. |
Integration plugins
These plugins provide some integration with various runtime technologies.
Plugin Id | Automatically applies | Works with | Description |
---|---|---|---|
|
- |
Adds tasks for running and bundling a Java project as a command-line application. |
|
- |
|
Adds support for building J2EE applications. |
|
- |
|
Provides a new DSL to support publishing artifacts to Ivy repositories, which improves on the existing DSL. |
|
- |
|
Provides a new DSL to support publishing artifacts to Maven repositories, which improves on the existing DSL. |
|
- |
|
Adds support for publishing artifacts to Maven repositories using the original publishing mechanism available in Gradle 1.0. See also Legacy Publishing. |
|
|
|
Adds support for building OSGi bundles. |
|
|
- |
Adds support for assembling web application WAR files. |
Incubating integration plugins
These plugins provide some integration with various runtime technologies.
Plugin Id | Automatically applies | Description |
---|---|---|
- |
Adds support for building ZIP and TAR distributions. |
|
|
Adds support for building ZIP and TAR distributions for a Java library. |
Software development plugins
These plugins provide help with your software development process.
Plugin Id | Automatically applies | Works with | Description |
---|---|---|---|
- |
- |
Publish messages to your favourite platforms, such as Twitter or Growl. |
|
announce |
- |
Sends local announcements to your desktop about interesting events in the build lifecycle. |
|
|
- |
Performs quality checks on your project’s Java source files using Checkstyle and generates reports from these checks. |
|
|
- |
Performs quality checks on your project’s Groovy source files using CodeNarc and generates reports from these checks. |
|
- |
|
Generates files that are used by Eclipse IDE, thus making it possible to import the project into Eclipse. See also this tutorial for Java projects. |
|
- |
|
Does the same as the eclipse plugin plus generates eclipse WTP (Web Tools Platform) configuration files. After importing to eclipse your war/ear projects should be configured to work with WTP. See also this tutorial for Java projects. |
|
|
- |
Performs quality checks on your project’s Java source files using FindBugs and generates reports from these checks. |
|
- |
|
Generates files that are used by Intellij IDEA IDE, thus making it possible to import the project into IDEA. |
|
|
- |
Performs quality checks on your project’s source files using JDepend and generates reports from these checks. |
|
|
- |
Performs quality checks on your project’s Java source files using PMD and generates reports from these checks. |
|
|
- |
Generates reports containing useful information about your Gradle build. |
|
base |
- |
Adds the ability to digitally sign built files and artifacts. |
Incubating software development plugins
These plugins provide help with your software development process.
Plugin Id | Automatically applies | Works with | Description |
---|---|---|---|
reporting-base |
- |
Generates build dashboard report. |
|
- |
- |
Adds support for running CUnit tests. |
|
reporting-base |
java |
Provides integration with the JaCoCo code coverage library for Java. |
|
- |
native language plugins |
Adds integration with Visual Studio. |
|
java |
Assists with development of Gradle plugins by providing standard plugin build configuration and validation. |
Base plugins
These plugins form the basic building blocks which the other plugins are assembled from. They are available for you to use in your build files, and are listed here for completeness. However, be aware that they are not yet considered part of Gradle’s public API. As such, these plugins are not documented in the user guide. You might refer to their API documentation to learn more about them.
Plugin Id | Description |
---|---|
base |
Adds the standard lifecycle tasks and configures reasonable defaults for the archive tasks. See Base Plugin. |
java-base |
Adds the source sets concept to the project. Does not add any particular source sets. |
groovy-base |
Adds the Groovy source sets concept to the project. |
scala-base |
Adds the Scala source sets concept to the project. |
reporting-base |
Adds some shared convention properties to the project, relating to report generation. |
Third party plugins
You can find a list of external plugins at the Gradle Plugins site.