From a0e0976e819e700642155edd81d8b620b54421b9 Mon Sep 17 00:00:00 2001 From: Christoph Dreis Date: Mon, 27 Feb 2023 20:26:54 +0100 Subject: [PATCH] Avoid configuring dependencyUpdates task (#736) --- .../com/github/benmanes/gradle/versions/VersionsPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/VersionsPlugin.kt b/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/VersionsPlugin.kt index d05b5b1b..30bd3ff2 100644 --- a/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/VersionsPlugin.kt +++ b/gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/VersionsPlugin.kt @@ -17,7 +17,7 @@ class VersionsPlugin : Plugin { } val tasks = project.tasks - if (tasks.findByName("dependencyUpdates") == null) { + if (!tasks.getNames().contains("dependencyUpdates")) { tasks.register("dependencyUpdates", DependencyUpdatesTask::class.java) } }