Updated for Gradle build.