How do you execute a built in gradle task in a doFirst/doLast closure?

前端 未结 2 703
失恋的感觉
失恋的感觉 2021-01-17 11:25

I don\'t know if I\'m not doing this right or if i have to handle builtin gradle tasks differently but i have a test task that i defined like this

task testN         


        
2条回答
  •  一向
    一向 (楼主)
    2021-01-17 11:53

    Executing a task from another task isn't (and never was) officially supported. Try to use task dependencies instead, e.g. taskA.dependsOn(testNGTests).

提交回复
热议问题