-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spotless gradle is super slow and doesn't appear to respect the -PspotlessFiles flag #557
Comments
Your build time is long because your targets are all With What are you using |
So interesting find, Changing the way I bring in the plugin, it's now running in under 10 seconds. Using the older #511 would roughly work, it looks like that's an open issue. They're trying to more or less achieve the same thing I am, and that Spotless only runs on files that have changed since the last commit. |
If you change back to the “slow” way, is it still slow? Or are they the same speed now? There’s a lot of caching going on, I wouldn’t expect any speed difference between the two approaches. |
Happy to reopen if you find more info, but I suspect that implementing #511 is going to be the final solution to this, |
Using
id "com.diffplug.gradle.spotless" version "3.28.1"
I'm seeing a spotlessApply, which it thinks is cached, taking over a minute.
For this build I also ran it with the
-PspotlessFiles=build.gradle
flag, which I would think should cut down on the time to run but it's still taking over a minute. The only thing that changed was a single white space.Am I missing something? Is this a typical run time? The project isn't massive.
https://scans.gradle.com/s/pcwl4s6sc7oio
The text was updated successfully, but these errors were encountered: