upgrade gradle and fix deploy issue