improved a little BuildingIssue

This commit is contained in:
2026-03-24 13:42:14 +00:00
parent 09d0ce5f5a
commit 9373996f86
4 changed files with 27 additions and 15 deletions
@@ -39,18 +39,8 @@ public final class DependencyService {
for (final var dependencyPhase : phases) {
final var issues = dependencyPhase.run(ctx);
var error = false;
if (ReadOnlyCollection.isNotEmpty(issues)) {
for (final var issue : issues) {
if (issue.isError()) {
error = true;
logs.using(log).error(issue.getMessage(), issue.getException());
continue;
}
logs.using(log).warn(issue.getMessage());
}
}
if (error) {
issues.forEach(issue -> issue.print(logs.using(log)));
if (issues.hasErrors()) {
throw new BuildException("[DEPS]: issues found during dependency phase: " + dependencyPhase.getClass().getSimpleName());
}
}
@@ -81,7 +81,7 @@ public final class WireProjectsPhase implements DependencyPhase {
}
if (sourceRootIssues.size() == projectInfo.getFrontendSpec().getSourceRoots().size()) {
// no source roots were found at all
issues.addAll(sourceRootIssues);
issues.add(sourceRootIssues);
}
return ProjectDescriptor