3 ms·
> Gradle badly needs performance improvement gradle --daemon is a hack, I guess, but I always use it for my builds (even aliased gradle to gradle --daemon). It
by signal11 10y ago
> Gradle badly needs performance improvement
gradle --daemon is a hack, I guess, but I always use it for my builds (even aliased gradle to gradle --daemon). It's far too slow otherwise.
On newer gradle releases I believe the daemon is enabled by default.
- foobarian 10y agoMy problem with gradle is the built in Java dependency resolution is way too aggressive. If you change a class with a static constant it recompiles everything. Even if you don't, it will compile the whole dependency graph to handle some theoretical edge case when it would be enough to compile just the modified file 99% of the time. Oh well.
- Sagiri 10y agoPersonally, I would rather builds be slow than have my build mysteriously break when I'm in that 1%.
- foobarian 10y agoFor me it depends. If I'm in a development session with lots of iterations where build speed is the bottleneck, I'd take my chances (I do anyway, have to resort to manually compiling individual files). For production/CI/other builds it's a different story, although those usually get built clean so it's not even a consideration.
- on_and_off 10y agoif you are on a dev session with a lot of iterations, you really want to go the InstantRun (or JRebel) route.