Convert to Gradle build