Skip to content

Commit a82c839

Browse files
authored
Faster spotless (#15553)
1 parent 54a6994 commit a82c839

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

conventions/src/main/kotlin/otel.spotless-conventions.gradle.kts

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,24 +85,19 @@ if (project == rootProject) {
8585
".gitattributes",
8686
".gitconfig",
8787
".editorconfig",
88-
"**/*.md",
89-
"**/*.sh",
90-
"**/*.dockerfile",
91-
"**/gradle.properties"
88+
"*.md",
89+
"gradle.properties",
90+
".github/**/*.md",
91+
".github/**/*.sh",
92+
"docs/**/*.md",
93+
"examples/**/*.md",
94+
"examples/**/gradle.properties",
95+
"licenses/**/*.md"
9296
)
9397
leadingTabsToSpaces()
9498
trimTrailingWhitespace()
9599
endWithNewline()
96100
}
97-
groovy {
98-
target("**/*.groovy")
99-
targetExclude("**/build/**")
100-
licenseHeaderFile(
101-
rootProject.file("buildscripts/spotless.license.java"),
102-
"(package|import|(?:abstract )?class)"
103-
)
104-
endWithNewline()
105-
}
106101
predeclareDeps()
107102
}
108103

instrumentation/grails-3.0/javaagent/build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@ configurations.testRuntimeClasspath {
6161
}
6262
}
6363

64+
spotless {
65+
groovy {
66+
target("src/**/*.groovy")
67+
licenseHeaderFile(
68+
rootProject.file("buildscripts/spotless.license.java"),
69+
"(package|import|(?:abstract )?class)"
70+
)
71+
endWithNewline()
72+
}
73+
}
74+
6475
tasks {
6576
withType<Test>().configureEach {
6677
systemProperty("testLatestDeps", latestDepTest)

0 commit comments

Comments
 (0)