Migrate to the latest gradle plugin

- Issue for #1