Spotless Gradle plugin doesn't respect .editorconfig changes when using daemon
Open
bug
- Dominant language
- Java
- Stars
- 5.6k
- Forks
- 559
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 34
Description
- [x] summary of problem
Steps to reproduce:
- enable Gradle daemon
- run `./gradlew spotlessCheck` with some failing rule.
- disable said rule in `.editorconfig`
- run `./gradlew spotlessCheck` again.
Expected: check passes.
Actual: check fails again.
Adding a `--no-daemon` command line parameter to second invocation resolves the issue; which hints that daemon somehow caches file contents, or doesn't treat it as an input to Gradle task.
- [x] Gradle or Maven version
Gradle 8.4, 8.5
- [x] spotless version
Spotless 6.23.1
- [x] operating system and version
macos Sonoma, 14.1.1
Contributor guide
Assessment
This issue has not been assessed yet.