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

(Gradle FAQ Bot) #1

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

Can I do this?

(Luke Daley) #2

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.