Now I am using pipeline to build my project, this is the testng config in gradle 6.0 build.gradle:
test { useTestNG() { } }