Name the root project

MSAL

Assign rootProject.name in the settings file. Left unset, the root project is named after the directory it sits in, so moving or cloning the build into a differently named directory silently renames the project, changing published artifact names and the paths of its subprojects. The name written is the one Gradle already resolved, taken from the GradleProject marker, so this pins current behaviour rather than changing it; where that is unavailable the recipe makes no change rather than guess a name. See the Gradle best practice.

org.openrewrite.gradle.migrate.settings.AddRootProjectName

Optional

The name to assign. When omitted the name Gradle already resolved for the root project is used, which is the one the root directory's name was supplying.

mod run . --recipe=org.openrewrite.gradle.migrate.settings.AddRootProjectName

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