Skip to content

Commit

Permalink
CR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Mar 21, 2024
1 parent b720756 commit 58d1035
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/jfrog/tasks/GenerateDepTrees.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ private GradleDepTreeResults createProjectDependencyTree(Project project) {
Map<String, GradleDependencyNode> nodes = new HashMap<>();
nodes.put(rootId, root);

// getConfigurations() may throw java.util.ConcurrentModificationException in loop
// To prevent ConcurrentModificationException, we clone the configuration names before iterating over them.
// This avoids issues caused by dynamic modifications by other Gradle plugins.
ConfigurationContainer configsContainer = project.getConfigurations();
Set<String> names = configsContainer.getNames();
for (String name : names) {
Expand Down

0 comments on commit 58d1035

Please sign in to comment.