mirror of
https://github.com/apple/pkl.git
synced 2026-05-25 08:09:17 +02:00
Fix build performance issues of spotless tasks (#722)
Using more efficient glob expressions and removing `targetExclude()` greatly speeds up performance on some OSes.
This commit is contained in:
@@ -42,12 +42,12 @@ artifacts {
|
||||
spotless {
|
||||
java {
|
||||
googleJavaFormat(libs.versions.googleJavaFormat.get())
|
||||
targetExclude("**/generated/**", "**/build/**")
|
||||
target("src/*/java/**/*.java")
|
||||
licenseHeaderFile(rootProject.file("buildSrc/src/main/resources/license-header.star-block.txt"))
|
||||
}
|
||||
kotlin {
|
||||
ktfmt(libs.versions.ktfmt.get()).googleStyle()
|
||||
targetExclude("**/generated/**", "**/build/**")
|
||||
target("src/*/kotlin/**/*.kt")
|
||||
licenseHeaderFile(rootProject.file("buildSrc/src/main/resources/license-header.star-block.txt"))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user