并行Gradle任务可同时运行

时间:2018-12-03 18:03:08

标签: gradle build.gradle gradlew gradle-eclipse

task abc(type: Exec){
    commandLine './text1.sh'

}

task def(Type:Exec){
    commandLine './text2.sh'
}

task ListOfTasks(dependsOn['clean']){

doFirst{

    abc.execute()
    def.execute()
}

}

由于doFirst不是并行的,并且我想并行运行这两个任务,如何实现?这可能在gradle中吗?

0 个答案:

没有答案