What are the differences between gradle assemble and gradle build tasks?

前端 未结 5 1074
谎友^
谎友^ 2020-12-13 23:08

If I am not wrong gradle assemble does run gradle assembleDebug and gradle assembleRelease, but I believe gradle build al

5条回答
  •  情深已故
    2020-12-13 23:35

    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.

提交回复
热议问题