Remove duplicate plugin declarations

MSAL

Remove a plugin declared more than once in the plugins block of a build script, with the same version and apply flag, keeping the first declaration. Gradle fails such a build with "Plugin with id '...' was already requested". Declarations that differ in version or in apply false are left alone, since which one to keep is a decision for the build's author, and so are version catalog aliases.

org.openrewrite.gradle.migrate.plugins.RemoveDuplicatePlugins
mod run . --recipe=org.openrewrite.gradle.migrate.plugins.RemoveDuplicatePlugins

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.