Skip to content

Gradle README documents -PspotlessFiles, which the Gradle plugin doesn't read #3183

Closed

Description

@arvidtorbjoernsen

Spotless Gradle plugin 8.11.0, Gradle 9.9.0.

plugin-gradle/README.md, "Can I apply Spotless to specific files?" (added in #2575), documents gradle spotlessApply -PspotlessFiles=.... The Gradle plugin doesn't read that property: spotlessFiles appears nowhere in plugin-gradle/src at gradle/8.11.0; only plugin-maven has it. For Gradle it was deprecated in 4.3.0 (plugin-gradle/CHANGES.md).

Repro: a kotlin { ktlint() } target with an unformatted Bite.kt (val bite = 1;), then

./gradlew spotlessApply -PspotlessFiles='.*/NoSuchFile.kt'

Bite.kt is formatted anyway; every file in the target is.

The section could point to -PspotlessIdeHook (IDE_HOOK.md) instead.

Activity

  1. added a commit that references this issue on Nov 20, 2026
    679eff5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions