Can I use Gradle tasks from a Gradle build from Ant?

From my ant build, I want to be able to call Gradle tasks.

Can I do this?

Ant targets can depend on Gradle tasks. See this section of the user guide for details.

At the moment the Gradle build needs to be the master and import the Ant build to make this work. You can’t import a Gradle build into Ant.