Skip to content

Spotless Gradle plugin doesn't respect .editorconfig changes when using daemon #1924

Open
@0legg

Description

@0legg
  • 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.

  • Gradle or Maven version
    Gradle 8.4, 8.5

  • spotless version
    Spotless 6.23.1

  • operating system and version
    macos Sonoma, 14.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions