How to find why gradle build is slow?

incremental
performance

(Eugen Martynov) #1

Guys,

It becomes more and more annoying. Current problems I have with my build:

  1. It is not incremental - it takes ages and re-runs many tasks even I didn’t change anything in sources
  2. It is slow

Any flag to run, any plugin to troubleshot the build. And find out what plugin is breaking incremental build, why gradle thinks it should be re-run, why particular step is taking so long, etc

Are there any guide how to do it?


(Pepper Lebeck-Jobe) #2

@emartynov,

This looks like a great job for Build Scans. Have you tried them yet?
https://scans.gradle.com/get-started


(uklance) #3

There’s also --profile

https://docs.gradle.org/current/userguide/tutorial_gradle_command_line.html#sec:profiling_build


(Schalk Cronjé) #4

If on Windows look at this thread: https://t.co/EePYU795Rs