Modified gradle file to be compatible with latest version.