Class ThirdLevelProblemGroup

java.lang.Object
org.gradle.api.problems.ProblemGroup
org.gradle.api.problems.ThirdLevelProblemGroup

@Incubating public abstract class ThirdLevelProblemGroup extends ProblemGroup
A problem group on the third level of the hierarchy, created through SecondLevelProblemGroup.group(String), for example Transformation > KMP > JavaScript.

Problems can be reported into this group with problemId(String). Sub-groups cannot be created below it, and it has no Undefined sub-group.

Not intended for subclassing outside of Gradle. New members may be added in future versions.

Since:
9.9.0
See Also:
  • Constructor Details

    • ThirdLevelProblemGroup

      protected ThirdLevelProblemGroup()
      Constructor.
      Since:
      9.9.0
  • Method Details

    • problemId

      public abstract ProblemId problemId(String name)
      Creates a problem id in this group.

      Problem names should be a single, concise sentence describing the kind of problem, without contextual details such as file names or values; those belong in the contextual label, the details, and the locations of the reported problem. They must not be blank, must not have leading or trailing whitespace, must not contain control or format characters (other than the zero width joiner and non-joiner), and are limited to 2000 characters.

      Parameters:
      name - the name of the problem
      Returns:
      the problem id
      Throws:
      IllegalArgumentException - if the name is invalid
      Since:
      9.9.0