I have the following multi-module project structure.
Root project 'reports-be'
+--- Project ':auth'
+--- Project ':builder'
| +--- Project ':builder:base'
| \--- Project ':builder:reporting'
\--- Project ':common'
When I run build
task for /builder subproject and I expect that build
task will be executed for all subprojects (for :builder:base
and :builder:reporting
).
gradle clean :builder:build
But gradle execute build
task only for subproject :builder
.
According Gradle documentation build
task should be completed for all subprojects.
Why doesn't it happen?
P.S. I found that the command gradle -p builder clean build
works as I expected. But I really don't understand what is wrong with first mentioned gradle task.
P.S.S. I have build.gradle
in every subproject and my settings.gradle
looks like
rootProject.name = 'reports-be'
include 'common'
include 'builder'
include 'auth'
include 'builder:base'
include 'builder:reporting'