Bubbling Gradle error up
package com.blackducksoftware.integration.hub.detect.bomtool.gradle;
import java.io.BufferedReader;
+import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
@@ -64,7 +65,7 @@ public class GradleReportParser {
@Autowired
private ExternalIdFactory externalIdFactory;
- public DetectCodeLocation parseDependencies(final DetectProject detectProject, final InputStream dependenciesInputStream) {
+ public DetectCodeLocation parseDependencies(final DetectProject detectProject, final InputStream dependenciesInputStream) throws IOException {
clearState();
try (BufferedReader reader = new BufferedReader(new InputStreamReader(dependenciesInputStream, StandardCharsets.UTF_8));) {
@@ -114,8 +115,6 @@ public class GradleReportParser {
previousNode = nextDependency;
previousTreeLevel = lineTreeLevel;
}
- } catch (final Exception e) {
- logger.error("Exception parsing gradle output: " + e.getMessage());
}
detectProject.setProjectNameIfNotSet(rootProjectName);
detectProject.setProjectVersionNameIfNotSet(rootProjectVersionName);
