add gradle testng configuration and java to 1.7