Updated ANT build scripts to support Gradle build