Skip to content

Commit 8456e86

Browse files
authored
Fix CME, update dependencies (#927)
* Fix CME, update dependencies - See: #907 * PR Comments * PR Comments 2
1 parent 3a57fd0 commit 8456e86

File tree

1 file changed

+2
-6
lines changed
  • gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/updates

1 file changed

+2
-6
lines changed

gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/updates/DependencyUpdates.kt

+2-6
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ class DependencyUpdates
4141
fun run(): DependencyUpdatesReporter {
4242
val projectConfigs =
4343
project.allprojects
44-
.associateBy({ it }, { it.configurations.matching(filterConfigurations).toLinkedHashSet() })
44+
.associateBy({ it }, { it.configurations.matching(filterConfigurations) })
4545

4646
val status: Set<DependencyStatus> = resolveProjects(projectConfigs, checkConstraints)
4747

4848
val buildscriptProjectConfigs =
4949
project.allprojects
50-
.associateBy({ it }, { it.buildscript.configurations.toLinkedHashSet() })
50+
.associateBy({ it }, { it.buildscript.configurations })
5151
val buildscriptStatus: Set<DependencyStatus> =
5252
resolveProjects(
5353
buildscriptProjectConfigs,
@@ -177,7 +177,3 @@ class DependencyUpdates
177177
}
178178
}
179179
}
180-
181-
private fun <T> Collection<T>.toLinkedHashSet(): LinkedHashSet<T> {
182-
return toCollection(LinkedHashSet(this.size))
183-
}

0 commit comments

Comments
 (0)