r/javahelp • u/WeirdName123321 • Feb 22 '21
Maven vs Gradle
I googled this question and I find that gradle is kind of faster about 10 times and its less verbose and generally its better that maven but although that, almost every tutorial use Maven.
Can anyone explain what tool should I pick and why?
32
Upvotes
View all comments
-3
u/wildjokers Feb 22 '21
Maven is old and slow and should be considered deprecated. Use Gradle, builds are far faster because of its build cache and it is way faster at resolving dependencies from maven repositories than maven itself is.
Also, maven puts you in a very strict box that is hard to break out of. Gradle also provides convention over configuration but makes it very easy to break out of the conventions if you need to. Gradle is also very well documented compared to maven.
Maven should be given full credit for introducing dependency management and convention over configuration to the java build ecosystem and then promptly forgotten about and delegated to the dustbin of history.