Build Multi Java Projects

My solution was call an ANT script that make what I want from the Gradle script. Now Gradle will be used just to resolve the project dependences. But generated another problem:

All this problem is beacuse I have a very complex legacy build scenario. Totaly out of Gradle or Maven build patterns. How Gradle is more flexible thant Maven, I chose Gradle instead of Maven to make this build.