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.

additionalData

abstract fun <T : AdditionalData?> additionalData(type: Class<T>, config: Action<in T>): ProblemSpec(source)

Declares additional data attached to the problem.

Return

this

Since

8.13

Parameters

type

The type of the additional data. This can be any type that implements AdditionalData including abstract classes and interfaces. This type will be instantiated and provided as an argument for the Action passed as the second argument.

The type can have the following properties:

config

The configuration action for the additional data.