Skip to content

Commit 61aef63

Browse files
authored
Avoid a ConcurrentModificationException occurring in conjunction to the IJ Platform Gradle plugin. (#5959)
1 parent a0a9fe7 commit 61aef63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/apollo-gradle-plugin-external/src/main/kotlin/com/apollographql/apollo3/gradle/internal/DefaultApolloExtension.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,9 @@ abstract class DefaultApolloExtension(
10281028
private const val USAGE_APOLLO_OTHER_OPTIONS = "apollo-other-options"
10291029

10301030
private fun getDeps(configurations: ConfigurationContainer): List<String> {
1031-
return configurations.flatMap { configuration ->
1031+
// See https://github.com/apollographql/apollo-kotlin/pull/5657
1032+
val currentConfigurations = configurations.toList()
1033+
return currentConfigurations.flatMap { configuration ->
10321034
configuration.dependencies
10331035
.filter {
10341036
/**

0 commit comments

Comments
 (0)