Update gradle and fix obsolete properties