Skip to content

Commit dec92d9

Browse files
authored
Spotless excludes formatting of **/build/* files (#1531)
Spotless excludes formatting of `**/build/*` files
1 parent 9d44d2b commit dec92d9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

gradle-palantir-java-format/src/main/java/com/palantir/javaformat/gradle/SpotlessInterop.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public SpotlessInterop(Supplier<FormatterService> formatterService) {
5151

5252
@Override
5353
public void execute(JavaExtension java) {
54+
java.targetExclude("**/build/**/*");
5455
// This is configuration cache safe as happening afterEvaluate
5556
java.addStep(spotlessJavaFormatStep());
5657
}

0 commit comments

Comments
 (0)