Migrate to the latest gradle plugin