Class GradleSecondLevelProblemGroup

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

@Incubating public abstract class GradleSecondLevelProblemGroup extends ProblemGroup
A predefined sub-group of the Gradle root group, for example Gradle > Build Cache.

Problems can be reported into this group with problemId(String). Sub-groups cannot be created below it: it is not a SecondLevelProblemGroup.

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

Since:
9.9.0
See Also:
  • Constructor Details

    • GradleSecondLevelProblemGroup

      protected GradleSecondLevelProblemGroup()
      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