If I am not wrong gradle assemble does run gradle assembleDebug and gradle assembleRelease, but I believe gradle build al
There is conflicting information about whether build is supposed to depend on assemble.
On one hand, Understanding Gradle: the Build Lifecycle shows a graph of task dependencies from where build and assemble are independent:
In contrast, the Gradle user guide for Java plugin shows that build depends on assemble, at least for Java projects:
This contradicts the graph from "Understanding Gradle." So perhaps the Android plugin implements build/assemble tasks differently from the Java plugin? Or, this behavior changed in some version of Gradle.