chnaged grandle build script. It does no longer use deprecated methods