From 1bca8c8cc89c9f993bef42018063a5a31f6c437c Mon Sep 17 00:00:00 2001 From: Andre Kurait Date: Tue, 16 Jul 2024 16:02:16 -0500 Subject: [PATCH] Fix spotless check ignore build and dependency directories Signed-off-by: Andre Kurait --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.gradle b/build.gradle index b47743212..c18903a1b 100644 --- a/build.gradle +++ b/build.gradle @@ -12,6 +12,7 @@ task buildDockerImages() { spotless { format 'misc', { target '**/*.gradle', '.gitattributes', '.gitignore' + targetExclude '**/build/**' trimTrailingWhitespace() indentWithSpaces() endWithNewline() @@ -19,6 +20,7 @@ spotless { } yaml { target '**/*.yml' + targetExclude '**/node_modules/**', '**/opensearch-cluster-cdk/**', '**/cdk.out/**' trimTrailingWhitespace() indentWithSpaces() endWithNewline() @@ -34,6 +36,7 @@ subprojects { spotless { java { target "**/*.java" + targetExclude '**/build/**' importOrder( 'java|javax', 'io.opentelemetry|com.google|com.fasterxml|org.apache|org.hamcrest|org.junit',