在Android项目中,每次我运行./gradlew assemble
。 Gradle将运行以下任务:
等等..
有没有办法知道每次我运行gradle任务时都会运行的任务列表?
也许有一个gradle命令,或者另一个选择是在继续显示任务名称的同时使每个任务输出静音。
最佳答案
您的用例有一个称为Dry-Run的功能:
4.8 Dry-Run
Sometimes you are interested in which tasks are executed in which order for a given set of tasks specified on the command line, but you don't want the tasks to be executed. You can use the
-m
option for this. For example, if you rungradle -m clean compile
, you'll see all the tasks that would be executed as part of the clean and compile tasks. This is complementary to the tasks task, which shows you the tasks which are available for execution.
关于android - 在Gradle上运行任务时,如何调查将要运行的其他任务?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45879412/