May 25, 2021 Gradle
The JDepend plug-in uses JDepend to perform quality checks on the project's source files and generate reports from the results of the checks.
To use the JDepend plug-in, include the following statement in the build script:
Use the JDepend plug-in
build.gradle
apply plugin: 'jdepend'
The plug-in adds a lot of quality checks to your project. You can perform a check by running the gradle check.
The JDepend plug-in adds the following tasks to the project:
Table 32.1. JDepend plug-in - task
The name of the task | Depends on | Type | Describe |
jdependMain
|
classes
|
jdepend | Run JDepend for the production Java source file. |
jdependTest
|
testClasses
|
jdepend | Run JDepend against the test Java source file. |
SourceSet
|
sourceSet
Classes
|
jdepend | Run JDepend for the Java source file for source set. |
The JDepend plug-in adds the following dependencies to the tasks that the Java plug-in joins.
Table 32.2. JDepend plug-in - additional task dependency
The name of the task | Depends on |
check
|
All JDepend tasks,
jdependTest
|
The JDepend plug-in adds the following dependency configurations:
Table 32.3. JDepend plug-in - Dependent on configuration
Name | Significance |
jdepend
|
The JDepend library used |