improved a little BuildingIssue
This commit is contained in:
+2
-12
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user