Move archivesBaseName, libsDirName and distsDirName into the base { } extension block
MSALGradle 9 removed the BasePluginConvention (deprecated in 8.2), so setting archivesBaseName, libsDirName or distsDirName on the project fails. Each becomes a Property of the base { } block: archivesName, and libsDirectory and distsDirectory resolved against layout.buildDirectory. A read of archivesBaseName becomes base.archivesName.get(), since the property it read is gone too. Reads of the directory properties, and assignments inside task configuration, are left for review. See the Gradle upgrade guide for more information.
org. openrewrite. gradle. migrate. base. UseBaseExtensionBlockmod run . --recipe= org. openrewrite. gradle. migrate. base. UseBaseExtensionBlockInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.