Migrate to the latest gradle plugin

- Issue for #1
Merge pull request #2 from KeithYokoma/master

Migrate to the latest gradle plugin