You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if I want to check the Spotless I need to run ./grudlew spotlessCheck and then spotlessApply to fix the code
Is there any possibility to run the spotlessApply every time when we Build the project
Fix automatically in local dev (so nobody wastes time manually adjusting whitespace).
Only check in CI (to catch inconsistencies).
That’s it. No back-and-forth, no manual fixes—just eliminating the pointless formatting churn that, as you mentioned yourself, this project is all about.
The scenario you're describing is designed to fail. Just fix it so it works. We already check formatting in CI. Just apply auto-fix formatting locally on the developer's machine, only.
So CI will check, dev will fix. No interference.
What's the issue with letting small whitespace issues block contributions?
This tools is supposed to make formatting easy. Why not follow the practices of bigger, well-maintained projects with large dev communities?
Activity
nedtwigg commentedon May 29, 2022
You can do
build.dependsOn(spotlessApply)or something like that. I strongly recommend against this, for this reason:Pankraz76 commentedon Jun 25, 2025
Stop Wasting Time on Formatting – Automate It Properly
This seems like an overly theoretical debate, ignoring Gradle’s full potential. The solution is simple, just like proposed in:
spotlessApplyon dev environment #2528That’s it. No back-and-forth, no manual fixes—just eliminating the pointless formatting churn that, as you mentioned yourself, this project is all about.
getPropertycan be simplified forline.separator#2524 (comment)Tools like Maven, Quarkus and PMD already do this. Why? Because engineers should focus on real work, not whitespace.
My build failed 5 times so did the CI, wasting your money.
Let’s actually solve the problem instead of overcomplicating it.
Pankraz76 commentedon Jun 25, 2025
The scenario you're describing is designed to fail. Just fix it so it works. We already check formatting in CI. Just apply auto-fix formatting locally on the developer's machine, only.
So
CIwill check,devwill fix. No interference.What's the issue with letting small whitespace issues block contributions?
This tools is supposed to make formatting easy. Why not follow the practices of bigger, well-maintained projects with large dev communities?