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
Executing a task from another task isn't (and never was) officially supported. Try to use task dependencies instead, e.g. taskA.dependsOn(testNGTests).
taskA.dependsOn(testNGTests)