Class RootProblemGroup
- Direct Known Subclasses:
CompilationProblemGroup, DeliveryProblemGroup, DependenciesProblemGroup, DocumentationProblemGroup, ExternalProcessesProblemGroup, OthersProblemGroup, PackagingProblemGroup, ProvisioningProblemGroup, TransformationProblemGroup, VerificationProblemGroup
Compilation.
Root groups only structure the hierarchy: problems cannot be reported directly into a root group. Report them into one of the
predefined sub-groups, into a sub-group created with group(String), or into getUndefined().
Not intended for subclassing outside of Gradle. New members may be added in future versions.
- Since:
- 9.9.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract UndefinedProblemGroupThe syntheticUndefinedsub-group for problems without an explicitly defined sub-group below this root group.abstract SecondLevelProblemGroupReturns the sub-group with the given name, creating it if it is not one of the predefined sub-groups.Methods inherited from class ProblemGroup
create, create, getDisplayName, getName, getParent
-
Constructor Details
-
RootProblemGroup
protected RootProblemGroup()Constructor.- Since:
- 9.9.0
-
-
Method Details
-
group
Returns the sub-group with the given name, creating it if it is not one of the predefined sub-groups.Names are case-sensitive. If
nameequals the name of a predefined sub-group, that predefined group is returned; any other name, including one that only differs from a predefined sub-group by case, creates a new sub-group. The nameUndefinedis reserved in any letter case; usegetUndefined()instead.Group names should be short and noun-based, so they read well as categories in a report. They consist of letters and digits of any script, single spaces between words, and the characters
- _ . + / & ' #, start with a letter or a digit, must be in Unicode normalization form NFC, and are limited to 50 characters.- Parameters:
name- the name of the sub-group- Returns:
- the sub-group
- Throws:
IllegalArgumentException- if the name is invalid or reserved- Since:
- 9.9.0
-
getUndefined
The syntheticUndefinedsub-group for problems without an explicitly defined sub-group below this root group.Prefer a predefined sub-group or a sub-group created with
group(String). This group exists so that a problem can be reported without inventing a category.- Since:
- 9.9.0
-