# ReportingExtension

abstract class ReportingExtension(source)

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

Example usage:

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

Content copied to clipboard

When implementing a task that produces reports, the location of where to generate reports should be obtained via the file method of this extension.

## Constructors

ReportingExtension
Link copied to clipboard
@Inject
constructor(project: Project)

## Properties

baseDirectory
Link copied to clipboard
val baseDirectory: DirectoryProperty
DEFAULT_REPORTS_DIR_NAME
Link copied to clipboard
val DEFAULT_REPORTS_DIR_NAME: String = "reports"
The default name of the base directory for all reports, relative to getBuildDirectory ({@value}).
NAME
Link copied to clipboard
val NAME: String = "reporting"
The name of this extension ("{@value}")
reports
Link copied to clipboard
@get:Incubating
val reports: ExtensiblePolymorphicDomainObjectContainer<ReportSpec>

## Functions

file
Link copied to clipboard
open fun file(path: String): File
Creates a file object for the given path, relative to getBaseDirectory.
getApiDocTitle
Link copied to clipboard
open fun getApiDocTitle(): String