Gradle configuration time taking too long in windows
See original GitHub issuesummary of problem
There is a huge gap in configuration time when spotless plugin is applied in a multi-project build between windows and linux. I’ve created a multiproject build with 150 projects to test this out:
Configuration time with spotless plugin
- 5 seconds in linux
- between 1m 30s and 2m in windows.
Configuration time without spotless plugin
- 0.6 seconds in linux
- 1 seconds in windows.
In windows the difference is overwhelming, slowing down the overall build time.
versions
Java 1.8 Spotless 3.15.0 Gradle 4.10.2 Windows 10
example project: projectA.zip
In projectA.gradle
there is a boolean variable to activate spotless plugin called spotless_plugin
. You can try to enable and disable it.
you can test this running from within the root projectA:
linux ./gradlew clean build --parallel --scan
windows gradlew.bat clean build --parallel --scan
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Why is gradle so much slower on Windows / NTFS?
In short it looks like the NTFS file system makes gradle slow. The difference are much bigger when using gradle then when using...
Read more >Android Studio gradle takes too long to build - Stack Overflow
Answer · 1) My build time severely increased after i added some new library dependencies to my gradle file, what turned out that...
Read more >How we reduced our Gradle build times by over 80%
Every plugin you add to your project adds time to the configuration phase, even if it doesn't do anything. So go through your...
Read more >How to decrease your Gradle build time by 65%? - Medium
If you are using the dynamic dependencies, gradle will go online and check if there is any newer version for the library is...
Read more >How to increase your Gradle Build Speed? - DigitalOcean
Speed up your Android Gradle Build · Make sure you're using the latest version of Gradle. · Try to minimize the use of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have done a really big mistake here!
project.rootDir
must beproject.projectDir
DAMN! sorry, my fault…
Thanks for the interesting case. Until someone finds time to investigate the root cause, #277 should at least alleviate the symptoms of this.