Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Gradle.pdf
Скачиваний:
9
Добавлен:
24.03.2015
Размер:
1.4 Mб
Скачать

Table 22.3. Integration plugins

 

 

Plugin Id

Automatically

Works

Description

 

applies

with

 

announce

-

-

Publish messages to your favourite

 

 

 

platforms, such as Twitter or Growl.

application

java

-

Adds tasks for running and bundling

 

 

 

a project as application.

build-announcements

announce

-

Sends local announcements to your

 

 

 

desktop about interesting events in

 

 

 

the build lifecycle.

ear

-

jetty

war

maven

-

osgi

java-base

war

java

java Adds support for building J2EE applications.

-Deploys your web application to a Jetty web container embedded in the build. See also Chapter 10, Web Application Quickstart.

java, warAdds support for deploying artifacts to Maven repositories.

java Adds support for building OSGi bundles.

-Adds support for assembling web application WAR files. See also Chapter 10, Web Application Quickstart.

22.4. Software development plugins

These plugins provide help with your software development process.

Table 22.4. Software development plugins

Plugin Id

Automatically

Works

Description

 

applies

with

 

Page 132 of 343

-
-
java
ear, war
, scala

checkstyle

java-base

-

Performs quality

checks

on your

 

 

 

project's Java source files using

 

 

 

Checkstyle and

generates

reports

 

 

 

from these checks.

 

 

codenarc

eclipse

eclipse-wtp

findbugs

idea

jdepend

groovy-base

-

-

java-base

-

java-base

-Performs quality checks on your project's Groovy source files using CodeNarc and generates reports from these checks.

java, groovyGenerates files that are used by Eclipse IDE, thus making it possible to import the project into Eclipse. See also Chapter 7, Java Quickstart.

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 Chapter 7, Java Quickstart.

-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 usingJDepend and generates reports from these checks.

pmd java-base

project-report reporting-base

Performs quality checks on your project's Java source files usingPMD and generates reports from these checks.

Generates reports containing useful information about your Gradle build.

Page 133 of 343

signing

base

-

Adds the ability to digitally sign built

 

 

 

files and artifacts.

sonar

-

-

Provides integration with the Sonar

 

 

 

code quality platform.

22.5. 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 no documented in the user guide. You might refer to their API documentation to learn more about them.

Table 22.5. Base plugins

Plugin Id

Description

base

Adds the standard lifecycle tasks and configures reasonable defaults for the

 

archive tasks:

 

adds buildConfigurationName tasks. Those tasks assemble the

 

artifacts belonging to the specified configuration.

 

adds uploadConfigurationName tasks. Those tasks assemble and

 

upload the artifacts belonging to the specified configuration.

 

configures reasonable default values for all archive tasks (e.g. tasks

 

that inherit from AbstractArchiveTask). For example, the archive

 

tasks are tasks of types: Jar, Tar, Zip. Specifically, destinationDir

 

, baseName and version properties of the archive tasks are

 

preconfigured with defaults. This is extremely useful because it drives

 

consistency across projects; the consistency regarding naming

 

conventions of archives and their location after the build completed.

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.

Page 134 of 343

22.6. Third party plugins

You can find a list of external plugins on the wiki.

Page 135 of 343

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]