Use project instead of this@Build_gradle
MSALThe Kotlin 2 compiler in Gradle 9 no longer resolves the label this@Build_gradle, which fails with Unresolved label. On Gradle 8.14 the label is the script object rather than the Project, so it only offers the script API, such as file(..) and logger, and those calls move to project. A member the script declares itself, a label inside subprojects, allprojects, project(..) or configure(..) where project is a different project, and a bare label are left alone. See the Gradle upgrade guide for more information.
org. openrewrite. gradle. migrate. kotlin. UseProjectInsteadOfBuildScriptLabelmod run . --recipe= org. openrewrite. gradle. migrate. kotlin. UseProjectInsteadOfBuildScriptLabelInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.