Convert to Gradle build system.