abstract class PmdPlugin : AbstractCodeQualityPlugin<T> (source)

A plugin for the PMD source code analyzer.

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

Declares a pmdAux configuration to add transitive compileOnly dependencies to the PMD's auxclasspath. This is only needed if PMD complains about NoClassDefFoundError during type resolution.

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

<a href="">PMD plugin reference</a>


Link copied to clipboard


Link copied to clipboard
val DEFAULT_PMD_VERSION: String = "6.55.0"


Link copied to clipboard
fun apply(project: ProjectInternal)
Link copied to clipboard
open fun getDefaultTargetJdk(javaVersion: JavaVersion): TargetJdk