Problems

@ServiceScope(value = BuildTree::class)
interface Problems(source)

Problems API service.

The main purpose of this API is to allow clients to create, configure, and report problems in a centralized way.

Reported problems are exposed via build operation progress events, which then are converted to Tooling API progress events.

Clients should expect that in future Gradle versions the reported problems will appear in console messages, reports, etc.

An instance of this type can be injected into a task, plugin or other object by annotating a public constructor or property getter method with javax.inject.Inject.

Since

8.4

Functions

Link copied to clipboard
abstract fun getGroups(): ProblemGroups
Returns the problem groups.
Link copied to clipboard
Return a problem reporter associated with a plugin.