Closed
Description
I have this in my build.gradle.kts:
defaultTasks("spotlessApply", "build")
so I always run formatter before build. It worked up until version 4.0.0. Now plugin formats everything but fails at the end:
> Task :spotlessJavaCheck FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':spotlessJavaCheck'.
> The following files had format violations:
src/test/java/se/inoviagroup/v2t/gateway/AbstractSpringBootTest.java
Run './gradlew :spotlessApply' to fix these violations.
If I run build again - it passes, since everything was formatted previously.
It worked on gradle 6.4.1 and spotless gradle plugin 3.30.0.