Hi,

there is interesting thread in Maven dev list [1], which discusses automatic spotlessApply as part of build. I personally use exactly same approach on other projects - i.e. compileJava depends on spotlessApply. The benefit is that CI rarely fails due to spotless (the only possibility is a commit that was not even compiled) and I didn't come across any significant drawbacks. The question therefore is, should we automatically apply spotless as part of (local) build or do we have any reasons why not to? CI builds should use just spotlessCheck, because local changes will not be committed nevertheless.

 Jan


[1] https://lists.apache.org/thread/9703k96md8lnlwnd0cz1qmqqkrkldtty

Reply via email to