Bump to latest version of gradle plugin, gradle and build tools

I've made a few changes to bump to latest version of gradle plugin, gradle and build tools. I am not sure whether it will be any other side effects or not.