Skip to content

Commit

Permalink
Check if a child dependency was already included as compileOnly (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermo-varela authored Aug 16, 2024
1 parent 52c210a commit 07cbd8b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,9 @@ private boolean shouldRemoveCompileOnlyDependencies(Project project, Configurati
}

private void fillAllChildDependencies(ResolvedDependency resolvedDependency, Set<String> dependenciesIds) {
dependenciesIds.add(getResolvedDependencyId(resolvedDependency));
if (!dependenciesIds.add(getResolvedDependencyId(resolvedDependency))) {
return;
}

if (resolvedDependency.getChildren() != null) {
for (ResolvedDependency child : resolvedDependency.getChildren()) {
Expand Down

0 comments on commit 07cbd8b

Please sign in to comment.