Skip to content

Commit

Permalink
Add workaround for spotless task cacheability
Browse files Browse the repository at this point in the history
  • Loading branch information
breskeby committed Oct 25, 2024
1 parent aa0d5b4 commit 1951286
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build-tools-internal/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,13 @@ tasks.named("jar") {

spotless {
java {
// IDEs can sometimes run annotation processors that leave files in
// here, causing Spotless to complain. Even though this path ought not
// to exist, exclude it anyway in order to avoid spurious failures.
toggleOffOn()

// workaround for https://github.com/diffplug/spotless/issues/2317
//toggleOffOn()
target project.fileTree("src/main/java") {
include '**/*.java'
exclude '**/DockerBase.java'
}
}
}

Expand Down

0 comments on commit 1951286

Please sign in to comment.