Skip to content

Commit 65ebcf2

Browse files
authored
Merge pull request #94 from IBM/feature-request-on-issue-93
Don't fail on build errors during download dependencies phase
2 parents 8bdbace + e94761f commit 65ebcf2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=1.0.9
1+
version=1.0.10

src/main/java/com/ibm/cldk/CodeAnalyzer.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,15 @@ private static void analyze() throws Exception {
118118
} else {
119119
// download library dependencies of project for type resolution
120120
String dependencies = null;
121-
if (BuildProject.downloadLibraryDependencies(input, projectRootPom)) {
121+
try {if (BuildProject.downloadLibraryDependencies(input, projectRootPom)) {
122122
dependencies = String.valueOf(BuildProject.libDownloadPath);
123123
} else {
124124
Log.warn("Failed to download library dependencies of project");
125125
}
126+
} catch (IllegalStateException illegalStateException) {
127+
Log.warn("Failed to download library dependencies of project");
128+
}
129+
126130
boolean analysisFileExists = output != null && Files.exists(Paths.get(output + File.separator + outputFileName));
127131

128132
// if target files are specified, compute symbol table information for the given files

0 commit comments

Comments
 (0)