Is there a way to list task dependencies in Gradle?

后端 未结 10 1009
逝去的感伤
逝去的感伤 2020-12-07 10:33

./gradle tasks lists \"some\" of the tasks. Looking at http://gradle.org/docs/current/userguide/java_plugin.html there are hidden ones not listed. Also, othe

10条回答
  •  鱼传尺愫
    2020-12-07 11:15

    list the tasks and what tasks they depend on (sort of like maven's depenceny:tree but for tasks)

    for this you can use --dry-run (or -m) option which lists tasks which are executed in order for particular command, but does not execute the command, e.g.

    gradle assemble --dry-run
    

    you can find more here

提交回复
热议问题