Package: org.gradle.api.plugins.quality

## [Groovy] Class PmdPlugin

- org.gradle.api.plugins.quality.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.

  check lifecycle task.

  See Also:
    PmdExtension
    Pmd

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `protected void` | `configureForSourceSet(SourceSet sourceSet, Pmd task)`
    `protected void` | `configureTaskDefaults(Pmd task, String baseName)`
    `protected CodeQualityExtension` | `createExtension()`
    `TargetJdk` | `getDefaultTargetJdk(JavaVersion javaVersion)`
    `protected Class<Pmd>` | `getTaskType()`
    `protected String` | `getToolName()`

- - ### Method Detail

    - #### @Override protected void configureForSourceSet(SourceSet sourceSet, Pmd task)

    - #### @Override protected void configureTaskDefaults(Pmd task, String baseName)

    - #### @Override protected CodeQualityExtension createExtension()

    - #### TargetJdk getDefaultTargetJdk(JavaVersion javaVersion)

    - #### @Override protected Class<Pmd> getTaskType()

    - #### @Override protected String getToolName()