Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
`Failed to apply plugin 'com.github.ben-manes.versions'.
 > Cannot add task 'dependencyUpdates' as a task with that name already exists.`
 when global added plugin
  • Loading branch information
sshuvalov committed Apr 29, 2021
1 parent 0807e49 commit bd5db2f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class VersionsPlugin implements Plugin<Project> {
return
}

project.tasks.register('dependencyUpdates', DependencyUpdatesTask)
if (!project.findByName("dependencyUpdates")) {
project.tasks.register('dependencyUpdates', DependencyUpdatesTask)
}
}
}

0 comments on commit bd5db2f

Please sign in to comment.