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)) -}