Skip to content

Commit

Permalink
Don't fail on build errors during download dependencies phase
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul Krishna <[email protected]>
  • Loading branch information
rahlk committed Jan 20, 2025
1 parent 8bdbace commit e94761f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=1.0.9
version=1.0.10
6 changes: 5 additions & 1 deletion src/main/java/com/ibm/cldk/CodeAnalyzer.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,15 @@ private static void analyze() throws Exception {
} else {
// download library dependencies of project for type resolution
String dependencies = null;
if (BuildProject.downloadLibraryDependencies(input, projectRootPom)) {
try {if (BuildProject.downloadLibraryDependencies(input, projectRootPom)) {
dependencies = String.valueOf(BuildProject.libDownloadPath);
} else {
Log.warn("Failed to download library dependencies of project");
}
} catch (IllegalStateException illegalStateException) {
Log.warn("Failed to download library dependencies of project");
}

boolean analysisFileExists = output != null && Files.exists(Paths.get(output + File.separator + outputFileName));

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

0 comments on commit e94761f

Please sign in to comment.