Fixed the remaining old gradle api calls