Updated gradle build.

- More plugins.
- Better use of maven repositories.