Skip to content

Commit

Permalink
Ignore dependencies internal to libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
pazi146 authored and oberlehner committed Sep 24, 2024
1 parent 859f741 commit d2222c4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public void execute() throws BuildException {
}

typeEntry.getDependencies().forEach(dep -> {
final var found = unused.stream().filter(u -> uriContained(u, dep.getURI())).toList();
final var found = unused.stream().filter(u -> !uriContained(u, typeEntry.getURI()))
.filter(u -> uriContained(u, dep.getURI())).toList();
if (!found.isEmpty()) {
unused.removeAll(found);
}
Expand Down

0 comments on commit d2222c4

Please sign in to comment.