Use extendsFrom instead of a Configuration as a dependency

MSAL

Gradle 8.0 no longer allows a Configuration in the dependencies { } block, failing with Adding a Configuration as a dependency is no longer allowed as of Gradle 8.0. What such a declaration did was make the configuration extend the other one, so this recipe writes that in a configurations { } block in front of the dependencies { } block. It acts on implementation configurations.foo in Groovy, and on implementation(foo) in Kotlin where foo is declared by configurations.creating or configurations.create. A declaration with a configuration closure, a configuration of another project, and a name the script also uses for a variable are left alone. See the Gradle upgrade guide for more information.

org.openrewrite.gradle.migrate.artifacts.UseExtendsFromForConfigurationDependencies
mod run . --recipe=org.openrewrite.gradle.migrate.artifacts.UseExtendsFromForConfigurationDependencies

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