use of org.gradle.internal.logging.text.TreeFormatter in project gradle by gradle.
the class DefaultCatalogProblemBuilder method maybeThrowError.
public static void maybeThrowError(String error, List<VersionCatalogProblem> problems) {
if (!problems.isEmpty()) {
TreeFormatter formatter = new TreeFormatter();
formatter.node(error);
formatter.startChildren();
for (VersionCatalogProblem problem : problems) {
problem.reportInto(formatter);
}
formatter.endChildren();
throw new InvalidUserDataException(formatter.toString());
}
}
Aggregations