interface Reporting<T : ReportContainer<Report>>
An object that provides reporting options.
Tasks that produce reports as part of their execution expose configuration options of those reports via these methods. The Reporting
interface is parameterized, where the parameter denotes the specific type of reporting container that is exposed. The specific type of the reporting container denotes the different types of reports available.
For example, given a task such as:
class MyTask implements Reporting<MyReportContainer> { // implementation } interface MyReportContainer extends ReportContainer<Report> { Report getHtml(); Report getCsv(); }
The reporting aspects of such a task can be configured as such:
task my(type: MyTask) { reports { html.enabled = true csv.enabled = false } }
See the documentation for the specific ReportContainer
type for the task for information on report types and options.
- The base type of the report container
abstract fun getReports(): T
A ReportContainer instance. Implementors specify a specific implementation of ReportContainer that describes the types of reports that are available. |
|
abstract fun reports(closure: Closure<Any>): T abstract fun reports(configureAction: Action<in T>): T
Allow configuration of the report container by closure.
|
abstract class AbstractTestTask : ConventionTask, VerificationTask, Reporting<TestTaskReports>
Abstract class for all test task.
Note: This abstract class is not intended for implementation by build script or plugin authors. |
|
open class Checkstyle : SourceTask, VerificationTask, Reporting<CheckstyleReports>
Runs Checkstyle against some source files. |
|
open class CodeNarc : SourceTask, VerificationTask, Reporting<CodeNarcReports>
Runs CodeNarc against some source files. |
|
open class FindBugs : SourceTask, VerificationTask, Reporting<FindBugsReports>
Analyzes code with FindBugs. See the FindBugs Manual for additional information on configuration options. |
|
open class GenerateBuildDashboard : DefaultTask, Reporting<BuildDashboardReports>
Generates build dashboard report. |
|
open class HtmlDependencyReportTask : ConventionTask, Reporting<DependencyReportContainer>
Generates an HTML dependency report. This report combines the features of the ASCII dependency report and those of the ASCII dependency insight report. For a given project, it generates a tree of the dependencies of every configuration, and each dependency can be clicked to show the insight of this dependency. This task generates a report for the task's containing project by default. But it can also generate a report for multiple projects, by setting the value of the
The report is generated in the
|
|
open class JDepend : DefaultTask, Reporting<JDependReports>
Analyzes code with JDepend. |
|
open class JacocoReport : JacocoReportBase, Reporting<JacocoReportsContainer>
Task to generate HTML, Xml and CSV reports of Jacoco coverage data. |
|
open class Pmd : SourceTask, VerificationTask, Reporting<PmdReports>
Runs a set of static code analysis rules on Java source code files and generates a report of problems found. |