Update gradle and fix obsolete properties

http://stackoverflow.com/questions/24139492/could-not-find-property-alljava-on-source-set-main