Update gradle settings and buildfile.