有什么方法可以并行运行dependsOn任务?
我有许多任务取决于dependOn:
task compileTTS32(dependsOn: [compileTTS32Debug, compileTTS32Release])
task compileTTS64(dependsOn: [compileTTS64Debug, compileTTS64Release])
task compileTTS(dependsOn: [compileTTS32, compileTTS64])
有什么办法可以并行运行所有
compile
任务?
最佳答案
目前尚无法做到这一点,但是,如果您能够制作TTS32和TTS64单独的子项目,则应该可以使用http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:parallel_execution获得一定程度的并行性
关于build - 运行并行任务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24170842/