Is there a way to list task dependencies in Gradle?

后端 未结 10 1014
逝去的感伤
逝去的感伤 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:24

    As your multiproject grows, the solution I marked as correct grows a bit unweildy and hard to read

    gradle tasks --all
    

    Instead, I have moved over to looking at a specific project making it much easier

    gradlew :full-httpproxy:tasks --all
    

    where 'full-httpproxy' is the name of my project(and directory as is typical).

    I am however curious how to list tasks on the master/root project though and have an outstanding question here as well

    How to list all tasks for the master project only in gradle?

    as doing that doesn't seem possible right now.

提交回复
热议问题