Table of Contents
The JDepend plugin performs quality checks on your project’s source files using JDepend and generates reports from these checks.
To use the JDepend plugin, include the following in your build script:
The plugin adds a number of tasks to the project that perform the quality checks. You can execute the checks by running gradle check
.
Note that JDepend will run with the same Java version used to run Gradle.
The JDepend plugin adds the following tasks to the project:
Table 63.1. JDepend plugin - tasks
Task name | Depends on | Type | Description |
|
|
Runs JDepend against the production Java source files. |
|
|
|
Runs JDepend against the test Java source files. |
|
|
|
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.
Table 63.2. JDepend plugin - additional task dependencies
Task name | Depends on |
|
All JDepend tasks, including |
The JDepend plugin adds the following dependency configurations:
Table 63.3. JDepend plugin - dependency configurations
Name | Meaning |
|
The JDepend libraries to use |
See the JDependExtension
class in the API documentation.