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

Table 31.2. FindBugs plugin - additional task dependencies

Task name

Depends on

check

All FindBugs tasks, including findbugsMain and findbugsTest.

31.3. Dependency management

The FindBugs plugin adds the following dependency configurations:

Table 31.3. FindBugs plugin - dependency configurations

Name Meaning

findbugs The FindBugs libraries to use

31.4. Configuration

See FindBugsExtension.

Page 180 of 343

32

The JDepend Plugin

The JDepend plugin performs quality checks on your project's source files usingJDepend and generates reports from these checks.

32.1. Usage

To use the JDepend plugin, include in your build script:

Example 32.1. Using the JDepend plugin

build.gradle

apply plugin: 'jdepend'

The plugin adds a number of tasks to the project that perform the quality checks. You can execute the checks by running gradle check.

32.2. Tasks

The JDepend plugin adds the following tasks to the project:

Table 32.1. JDepend plugin - tasks

Task name

Depends on

Type

Description

jdependMain

classes

JDepend

Runs JDepend against the production Java

 

 

 

source files.

jdependTest

testClasses

JDepend

Runs JDepend against the test Java source

 

 

 

files.

jdependSourceSetsourceSetClassesJDepend

Runs JDepend against the given source

 

 

 

set's Java source files.

The JDepend plugin adds the following dependencies to tasks defined by the Java plugin.

Page 181 of 343

Table 32.2. JDepend plugin - additional task dependencies

Task name

Depends on

check

All JDepend tasks, including jdependMain and jdependTest.

32.3. Dependency management

The JDepend plugin adds the following dependency configurations:

Table 32.3. JDepend plugin - dependency configurations

Name Meaning

jdepend The JDepend libraries to use

32.4. Configuration

See JDependExtension.

Page 182 of 343

33

The PMD Plugin

The PMD plugin performs quality checks on your project's Java source files usingPMD and generates reports from these checks.

33.1. Usage

To use the PMD plugin, include in your build script:

Example 33.1. Using the PMD plugin

build.gradle

apply plugin: 'pmd'

The plugin adds a number of tasks to the project that perform the quality checks. You can execute the checks by running gradle check.

33.2. Tasks

The PMD plugin adds the following tasks to the project:

Table 33.1. PMD plugin - tasks

Task name

Depends

Type

Description

 

on

 

 

pmdMain

-

Pmd

Runs PMD against the production Java source files.

pmdTest

-

Pmd

Runs PMD against the test Java source files.

pmdSourceSet

-

Pmd

Runs PMD against the given source set's Java

 

 

 

source files.

The PMD plugin adds the following dependencies to tasks defined by the Java plugin.

Page 183 of 343

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