From 8456e86848e52fa3831f9e12b7d97889b7576733 Mon Sep 17 00:00:00 2001 From: Matthew Zavislak <1291596+elevenfive@users.noreply.github.com> Date: Wed, 22 Jan 2025 17:11:26 -0800 Subject: [PATCH] Fix CME, update dependencies (#927) * Fix CME, update dependencies - See: https://github.com/ben-manes/gradle-versions-plugin/issues/907 * PR Comments * PR Comments 2 --- .../benmanes/gradle/versions/updates/DependencyUpdates.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/updates/DependencyUpdates.kt b/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/updates/DependencyUpdates.kt index cab65272b..bb11f184c 100644 --- a/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/updates/DependencyUpdates.kt +++ b/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/updates/DependencyUpdates.kt @@ -41,13 +41,13 @@ class DependencyUpdates fun run(): DependencyUpdatesReporter { val projectConfigs = project.allprojects - .associateBy({ it }, { it.configurations.matching(filterConfigurations).toLinkedHashSet() }) + .associateBy({ it }, { it.configurations.matching(filterConfigurations) }) val status: Set = resolveProjects(projectConfigs, checkConstraints) val buildscriptProjectConfigs = project.allprojects - .associateBy({ it }, { it.buildscript.configurations.toLinkedHashSet() }) + .associateBy({ it }, { it.buildscript.configurations }) val buildscriptStatus: Set = resolveProjects( buildscriptProjectConfigs, @@ -177,7 +177,3 @@ class DependencyUpdates } } } - -private fun Collection.toLinkedHashSet(): LinkedHashSet { - return toCollection(LinkedHashSet(this.size)) -}