api / org.gradle.api.plugins.quality / JDepend

JDepend

@CacheableTask open class JDepend : DefaultTask, Reporting<JDependReports>

Analyzes code with JDepend.

Constructors

<init>

JDepend()

Functions

getAntBuilder

open fun getAntBuilder(): IsolatedAntBuilder

getClassesDir

open fun getClassesDir(): File

The directory containing the classes to be analyzed.

getClassesDirs

open fun getClassesDirs(): FileCollection

The directories containing the classes to be analyzed.

getJdependClasspath

open fun getJdependClasspath(): FileCollection

The class path containing the JDepend library to be used.

getObjectFactory

open fun getObjectFactory(): ObjectFactory

Injects and returns an instance of org.gradle.api.model.ObjectFactory.

getReports

fun getReports(): JDependReports

The reports to be generated by this task.

reports

open fun reports(closure: Closure<Any>): JDependReports
open fun reports(configureAction: Action<in JDependReports>): JDependReports

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" } } } 

run

open fun run(): Unit

setClassesDir

open fun setClassesDir(classesDir: File): Unit

The directory containing the classes to be analyzed.

setClassesDirs

open fun setClassesDirs(classesDirs: FileCollection): Unit

The directories containing the classes to be analyzed.

setJdependClasspath

open fun setJdependClasspath(jdependClasspath: FileCollection): Unit

The class path containing the JDepend library to be used.