Differences between Maven and Gradle

2

I'm starting with Gradle and I was wondering what are the main differences with Maven when starting a new project in groovy / grails.

Note: The question can be considered as opinion and be moderate, I would appreciate it if you help me understand the differences.

    
asked by Santi92 17.09.2016 в 21:18
source

1 answer

3

We can say that Gradle learned from Maven's mistakes, because he finally performs many of the same tasks, has the same purpose, but eliminated the complexity of Maven.

Instead of having to use so much XML, you use a DSL over Groovy. The creation of personalized tasks is extremely simple, as is the management of multi-projects. The Gradle scripts are much more readable than those of Maven.

Gradle offers a bootstrap so you can put it within your source distribution (in your git repo, for example) so that other devs can build your project without having to install Gradle.

Gradle can use the local Maven cache for dependencies and not have to go back down a lot of things.

Gradle has a daemon that helps to speed up project construction time a lot because it is a process that is already running forever and therefore eliminates the startup time of the JVM.

    
answered by 05.12.2016 в 19:23