Use project(...) dependency notation instead of the current project's module coordinates

MSAL

Gradle 9.3 deprecates depending on the current project by its own group:name:version module coordinates. In Gradle 9.x such a declaration resolves to the project's local outgoing variants, but in Gradle 10 it will instead attempt resolution from a repository. This recipe replaces a dependency declaration whose coordinates match the current project with the equivalent project("<path>") notation. Requires the GradleProject marker (available when parsed by the OpenRewrite Gradle plugin) to know the current project's coordinates and path.

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

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