Convert to gradle build.