Why does adding "rootProject.name=projectName" in one of the subprojects settings.gradle file change the available tasks for that project?

In a multi-project setup, why does adding “rootProject.name=projectName” in one of the subprojects settings.gradle file change the available tasks for that project? The only way to build/clean is from the root project

A multiproject build can only have one settings.gradle file. It makes no sense to say “one of the subprojects settings.gradle file”.
You might get some insight by taking a look at the “multiproject builds” section of the user guide.

OK…Thanks