For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

reports

open fun reports(@DelegatesTo(value = CheckstyleReports::class, strategy = Closure.DELEGATE_FIRST) closure: Closure): CheckstyleReports(source)

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

checkstyleTask {
  reports {
    html {
      destination "build/checkstyle.html"
    }
  }
}

Return

The reports container

Parameters

closure

The configuration


open fun reports(configureAction: Action<in CheckstyleReports>): CheckstyleReports(source)

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

checkstyleTask {
  reports {
    html {
      destination "build/checkstyle.html"
    }
  }
}

Return

The reports container

Since

3.0

Parameters

configureAction

The configuration