# Build Multi Java Projects

**URL:** <https://discuss.gradle.org/t/build-multi-java-projects/10238>\
**Category:** Help/Discuss\
**Created:** [June 23, 2015, 12:30pm UTC](https://discuss.gradle.org/t/build-multi-java-projects/10238 "2015-06-23T12:30:13Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![jadsonjs](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@jadsonjs](https://discuss.gradle.org/u/jadsonjs)\
**Post date:** [June 26, 2015, 2:00pm UTC](https://discuss.gradle.org/t/build-multi-java-projects/10238/8 "2015-06-26T14:00:12Z")

</div>

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:

> [@PowerMock with Gradle](https://discuss.gradle.org/t/powermock-with-gradle/10300):
>
> Hello again, This week I am trying to migrate a legacy system to gradle and having a lot of problems. Now, I am trying to run unit test that use powermock calling a ANT script from gradle: configurations { junitAnt } dependencies { compile(group: 'mockito-all', name: 'mockito-all', version: '1.9.5') compile(group: 'org.powermock', name: 'powermock-core', version: '1.6.1') compile(group: 'org.powermock', name: 'powermock-mockito', version: '1.6.1…

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.

---

_[View the full topic](https://discuss.gradle.org/t/build-multi-java-projects/10238)._
