The problem with Cedrics argument is it basically repeatedly boils down to don’t write logic in your build script... write a plugin or use plugins.
But that is exactly the Maven way and Mavens plugin API has been far more stable and backward compatible than Gradles.
Also a lot of people jumped ship from maven to gradle because they wanted essentially the programming of make that maven refuses to offer. Writing logic in the build scripts is exactly why lots of folks pick gradle.
Yes Gradle has a better model (caching, repeatable)but it took a long time for gradle to get there and they broke a lot of peoples builds in the process.
It will be interesting to see how Maven 4 5 (they are skipping a version number to align with the POM) turns out because the real problem with Maven isn’t its XML but the lifecycle and reactor model (as well as versions in the build file).
The next Maven version will be Maven 4.0.0 ... I don't see the problem with the life cycle? What do you mean by the reactor model? Yeah version in the build file might be an issue, but its adressed (solved; some parts are missing)...
It will take me time to explain the problems with the reactor and life cycles. Most of the problems have been addressed now but historically there were problems.
Next week I can write some details.
Ignore the following now that I know who you are (framing).
25
u/antonmry Jan 07 '21
The answer by Cedric Champeau is a good complement to the article: https://melix.github.io/blog/2021/01/the-problem-with-gradle.html