When I call build task all subprojects are assembled as expected, but when I create dummy task that depends on build and call this dummy task not all subprojects are assebled.
That’s expected. The ‘build’ tasks don’t depend on each other, it’s just that ‘gradle build’ will execute all of them. See “55.3. Execution rules for multi-project builds” in the Gradle User Guide.
Thanks a lot, I missed that