gradle init for creating a multi-subproject gradle project for java it does not create any root level
build.gradle file. But when I am creating one manually it is being executed. So, my question is, is the root level
build.gradle file is optional?
Every build script is optional, not only the one at the root level.
If you for example (bad practice) have the whole build logic in the root build script and configure the subproejcts from there, you could omit all other build scripts.
You should just not do it.
In the generated project the root project has no content and no logic besides being the parent for the subprojects, so no actual build script is necessary.
Thanks a lot for clarifying that