question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gradle configuration time taking too long in windows

See original GitHub issue

summary 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
regrogcommented, Dec 20, 2018

I have done a really big mistake here!

target fileTree(dir: project.rootDir, includes: [

project.rootDir must be project.projectDir

DAMN! sorry, my fault…

1reaction
nedtwiggcommented, Oct 5, 2018

Thanks for the interesting case. Until someone finds time to investigate the root cause, #277 should at least alleviate the symptoms of this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found