I've got a very basic multi-project Gradle setup like this:
root
+--- build.gradle
+--- settings.gradle
+--- subproject1
\--- build.gradle
\--- subproject2
\--- build.gradle
The settings.gradle file includes both subprojects. The root project does not apply the java plugin, but both subprojects do. Everything builds as expected when using gradle build.
But, as far as i understand, since i don't apply the java plugin at the root project, it is not supposed to have a build task.
- the output of
gradle tasks, shows abuildtask. - but the output of
gradle tasks --allshows only:subproject1:buildand:subproject2:buildlisted instead.
So my question is - what exactly is executed in this scenario? Does gradle just find every task that matches the supplies pattern in all subprojects? Are there any specific rules about this task name resolution? Where can i find more info about this?