Migrate to gradle.