Skip to content

Commit 1951286

Browse files
committed
Add workaround for spotless task cacheability
1 parent aa0d5b4 commit 1951286

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

build-tools-internal/build.gradle

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,13 @@ tasks.named("jar") {
386386

387387
spotless {
388388
java {
389-
// IDEs can sometimes run annotation processors that leave files in
390-
// here, causing Spotless to complain. Even though this path ought not
391-
// to exist, exclude it anyway in order to avoid spurious failures.
392-
toggleOffOn()
389+
390+
// workaround for https://github.com/diffplug/spotless/issues/2317
391+
//toggleOffOn()
392+
target project.fileTree("src/main/java") {
393+
include '**/*.java'
394+
exclude '**/DockerBase.java'
395+
}
393396
}
394397
}
395398

0 commit comments

Comments
 (0)