With a single module project, the build file can have any name. One just have to use the -b option to run the build. With a multimodule project, if the build name is different from “build.gradle”, we get the following error :
* Where: Build file '.../project-parent/build2.gradle' line: 39 * What went wrong: A problem occurred evaluating root project 'project-parent'. > Project with path ':project-model' could not be found in root project 'project-parent'.
Changing the name from build2.gradle to build.gradle make the problem disapear. Is there any reason for this ?