# JDepend

API Documentation: | `JDepend`

Analyzes code with JDepend.

### Properties

Property | Description
`classesDir` | Deprecated The directory containing the classes to be analyzed.
`classesDirs` | The directories containing the classes to be analyzed.
`jdependClasspath` | The class path containing the JDepend library to be used.
`reports` | The reports to be generated by this task.

### Methods

Method | Description
`reports(configureAction)` | Configures the reports to be generated by this task. The contained reports can be configured by name and closures. Example:

### Script blocks

Block | Description
`reports` | Configures the reports to be generated by this task. The contained reports can be configured by name and closures. Example:

### Property details

#### `File` `classesDir`

Note: This property is deprecated and will be removed in the next major version of Gradle.

The directory containing the classes to be analyzed.

#### `FileCollection` `classesDirs`

The directories containing the classes to be analyzed.

Default with `jdepend` plugin:
  ``sourceSet`.output.classesDirs`

#### `FileCollection` `jdependClasspath`

The class path containing the JDepend library to be used.

Default with `jdepend` plugin:
  `project.configurations.jdepend`

#### `JDependReports` `reports` (read-only)

The reports to be generated by this task.

### Method details

#### `JDependReports` `reports`(``Action`<? super `JDependReports`>` configureAction)

Configures the reports to be generated by this task. The contained reports can be configured by name and closures. Example:

    jdependTask {
      reports {
        xml {
          destination "build/jdepend.xml"
        }
      }
    }

### Script block details

#### `reports` { }

Configures the reports to be generated by this task. The contained reports can be configured by name and closures. Example:

    jdependTask {
      reports {
        xml {
          destination "build/jdepend.xml"
        }
      }
    }

Delegates to:
  `JDependReports` from `reports`