api / org.gradle.api.plugins.quality / PmdPlugin

PmdPlugin

open class PmdPlugin : AbstractCodeQualityPlugin

A plugin for the PMD source code analyzer.

Declares a pmd configuration which needs to be configured with the PMD library to be used.

For each source set that is to be analyzed, a Pmd task is created and configured to analyze all Java code.

All PMD tasks (including user-defined ones) are added to the check lifecycle task.

See Also
PmdExtensionPmd

Constructors

<init>

PmdPlugin()

A plugin for the PMD source code analyzer.

Declares a pmd configuration which needs to be configured with the PMD library to be used.

For each source set that is to be analyzed, a Pmd task is created and configured to analyze all Java code.

All PMD tasks (including user-defined ones) are added to the check lifecycle task.

Properties

DEFAULT_PMD_VERSION

static val DEFAULT_PMD_VERSION: String

Functions

getDefaultTargetJdk

open fun getDefaultTargetJdk(javaVersion: JavaVersion): TargetJdk