3 ms·
Gradle is much faster than maven, as it supports parallel builds, has much smarter caching/evaluation strategies, etc. You just likely have tasks run at config
by kaba0 4y ago
Gradle is much faster than maven, as it supports parallel builds, has much smarter caching/evaluation strategies, etc.
You just likely have tasks run at configuration time (you don’t use doFirst/doLast in custom tasks), or some other problematic build files.
- microflash 4y agoThis reinforces my opinion about Gradle: there are too many footguns and papercuts. Every time I shot myself in foot using Gradle, some Gradle expert would chime in that I'm probably not using some (poorly documented) way of doing things that would have drastically improved my experience. This becomes even more problematic in large teams where we have a mix of experienced and novice engineers. Onboarding new people and maintaining the cognitive load about the build using Maven is several magnitudes faster and predictable than with Gradle.
- pjmlp 4y agoBy requiring an always running background daemon to actually make it fast.
- kaba0 4y agoNo, gradle is fast in CICD settings as well where daemons are meaningless. It is fast because it has a proper graph model that only updates nodes that need to be updated, and can often do so in parallel.
- pjmlp 4y agoNot faster than Maven, that doesn't depend on a slow scripting language, the reason the daemon was created in first place.
- kaba0 4y agoYou are fantastically ignorant on this topic, even though I generally find your comments informative.. You can’t possibly believe that the configuration file itself takes any significant percentage of running a full build?
- pjmlp 4y agoI have fantastically lost my patience with Gradle builds that is why. I bet if it wasn't for Android, no one would care about Gradle, Google is basically funding its existence. There are hardly any talks about optmizing Maven builds, with Gradle on the other hand, not only it comes regularly, there is even tooling to track down build performance issues and regular conference talks on the matter.