Often when running my tasks in a medium-size proje...
# gradle
a
Often when running my tasks in a medium-size projects (7-8 modules), I get like 10 to 30s of just
> IDLE
and Gradle staying at 0%, I have this parameters in my
gradle.properties
Copy code
# Gradle optimization flags
org.gradle.caching=true
org.gradle.configuration-cache=true
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.parallel=true
And I don't understand why it's so slow to start tasks, even just a small run task for tests where I just changed 1 file it can take like 20s of Idling
m
I have been in this rabbit hole lately. Some of it was dependency resolution. You can make a flame chart of your configuration time. I followed these steps: https://www.liutikas.net/2022/06/01/Profiling-The-Good-Kind.html
a
Do you perhaps have a network drive mounted? I've had gradle idle a while ago due to some issue with FS watching, try disabling it https://docs.gradle.org/current/userguide/file_system_watching.html
a
Thanks, I don't find the thing slowing down my build, because it just says that the first task starts after 8-30s (a random time at every run) and there is nothing before, so I just don't know