Migrate to latest gradle plugin and project structure.