Skip to content

Commit

Permalink
Fix the latest snapshot resolver. (#4304)
Browse files Browse the repository at this point in the history
  • Loading branch information
breedx-splk committed Oct 5, 2021
1 parent f63fe62 commit 4be3583
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ private String fetchLatestFilename(String version) throws IOException {
return match.get().stream()
.filter(
elem -> {
String classifier = $(elem).child("classifier").content();
Match classifierMatch = $(elem).child("classifier");
String classifier = classifierMatch == null ? null : classifierMatch.content();
String extension = $(elem).child("extension").content();
// TODO (trask) this needs to be updated now that no more "all" artifact
return "all".equals(classifier) && "jar".equals(extension);
return "jar".equals(extension) && (classifier == null);
})
.map(e -> $(e).child("value").content())
.findFirst()
Expand Down

0 comments on commit 4be3583

Please sign in to comment.