如何仅在gradle中列出主项目的所有任务? [英] How to list all tasks for the master project only in gradle?
问题描述
我很久以前问过这个问题了....
并注释我现在做的事情是,我的项目已经成长为一项不值得的任务。然后我可以列出某个项目的所有任务,比如
./ gradlew:core:core-channelmanager2:asynch-server:tasks --all
这给我一个很好的任务列表和JUST项目的依赖关系。然而,我的主根项目没有很多我的子项目所具有的插件,因为它不需要它们,但我仍然需要了解它的任务列表。我知道我可以做到这一点
./ gradlew tasks --all
但打印世界。我似乎无法做到这一点
./ gradlew:master:tasks --all
也没有这个
./ gradlew :webpieces:tasks --all
其中webpieces是我的项目... https://github.com/deanhiller/webpieces/blob/master/build.gradle
是否有办法列出所有根项目任务,以便我可以清楚地了解我的根项目?
感谢,
院长
试试这个命令
$ ./gradlew -q:tasks --all
------------------- -----------------------------------------
所有可从根目录运行的任务项目
--------------------------------------------- ---------------
构建安装任务
-----------------
init - 初始化一个新的Gradle构建。 [孵化]
生成类型任务
----------------
.....
I asked this question a long time ago....
Is there a way to list task dependencies in Gradle?
and annotated what I do these days as my project has grown to an unweildy task count. I can then list all tasks for a certain project like
./gradlew :core:core-channelmanager2:asynch-server:tasks --all
and this gives me a nice task list and dependencies of JUST that project. My master root project however does not have many of the plugins my subprojects have since it doesn't need them, but I still need to understand it's task list. I know I can do this
./gradlew tasks --all
but that prints the world. I can't seem to do this
./gradlew :master:tasks --all
nor this
./gradlew :webpieces:tasks --all
where webpieces is my project here ... https://github.com/deanhiller/webpieces/blob/master/build.gradle
Is there a way to list ALL the root projects task so I can get a clear picture of my root project?
thanks, Dean
Try this command
$ ./gradlew -q :tasks --all
------------------------------------------------------------
All tasks runnable from root project
------------------------------------------------------------
Build Setup tasks
-----------------
init - Initializes a new Gradle build. [incubating]
Build Type tasks
----------------
.....
这篇关于如何仅在gradle中列出主项目的所有任务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!