Some quick code snippets for using an Ant build script from within a Gradle build:

## Plain and simple

If the Ant script uses optional tasks, these tasks must explicitly be defined, and the implementing libraries must be added as dependencies. In this example, I am using JUnit 4.8.2 with the Ant-provided junit and junitreport tasks: