When resolving the dependencies from a Gradle configuration throws a ResolveException a new resolvable configuration is created and dependencies are copied there.
As the code iterates over a Set of configuration, this change creates a copy of the original Set so it can be iterated without considering the copies and without throwing ConcurrentModificationException.
When resolving the dependencies from a Gradle configuration throws a
ResolveException
a new resolvable configuration is created and dependencies are copied there.As the code iterates over a Set of configuration, this change creates a copy of the original Set so it can be iterated without considering the copies and without throwing
ConcurrentModificationException
.It relates to the following issue #s:
cc @bhamail / @DarthHater / @shaikhu