I have big JAVA system (java 8) which includes more than 50 projects/modules. It was using maven install (Apache Maven 3.6.3). I migrate it to gradle install (version 6.5.1) as follows + manually add all maven transitive dependency to build.gradle of every module:
> gradle init
To compare the install performance, the following was executed for gradle install:
gradle install -x test --parallel
and for maven install:
mvn clean install -T4C -DskipTests -U
To my surprise, maven is almost 2 times faster than gradle. Perhaps adding duplicate dependency on each project makes install expensive. But I can't skip adding them repeatedly. Do I do something wrong here? Or (gradle seems having promise of better performance). How can I improve the performance of gradle install? Thank you.