如何只打印在build.gradle中声明的任务?

时间:2018-02-07 21:48:55

标签: gradle build.gradle

是否可以打印(使用cmd)我在build.gradle中声明的

任务?

命令gradle tasks会打印许多其他任务。

gradle tasks的输出示例:

Build Setup tasks
-----------------
init - Initializes a new Gradle build.
wrapper - Generates Gradle wrapper files.

Help tasks
----------
buildEnvironment - Displays all buildscript dependencies declared in root project '1.07-Exercise-ConfigureATask'.
components - Displays the components produced by root project '1.07-Exercise-ConfigureATask'. [incubating]
dependencies - Displays all dependencies declared in root project '1.07-Exercise-ConfigureATask'.
dependencyInsight - Displays the insight into a specific dependency in root project '1.07-Exercise-ConfigureATask'.
dependentComponents - Displays the dependent components of components in root project '1.07-Exercise-ConfigureATask'. [incubating]
help - Displays a help message.
model - Displays the configuration model of root project '1.07-Exercise-ConfigureATask'. [incubating]
projects - Displays the sub-projects of root project '1.07-Exercise-ConfigureATask'.
properties - Displays the properties of root project '1.07-Exercise-ConfigureATask'.
tasks - Displays the tasks runnable from root project '1.07-Exercise-ConfigureATask'.

0 个答案:

没有答案