Migrate project to gradle.