ReportingExtension

API Documentation:ReportingExtension

A project extension named "reporting" that provides basic reporting settings and utilities.

Example usage:

reporting {
    baseDirectory = layout.buildDirectory.dir("our-reports")
}

When implementing a task that produces reports, the location of where to generate reports should be obtained via the ReportingExtension.file(java.lang.String) method of this extension.

Properties

PropertyDescription
baseDirectory

Returns base directory property to use for all reports.

Methods

MethodDescription
file(path)

Creates a file object for the given path, relative to ReportingExtension.getBaseDir().

Script blocks

No script blocks

Property details

DirectoryProperty baseDirectory

Returns base directory property to use for all reports.

Method details

File file(String path)

Creates a file object for the given path, relative to ReportingExtension.getBaseDir().

The reporting base dir can be changed, so users of this method should use it on demand where appropriate.