Skip to content

Commit 914e605

Browse files
committed
Disable header check in spotless allowing both ASF header and third-party header (for source copied from other projects)
1 parent 339c207 commit 914e605

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build-logic/src/main/kotlin/polaris-root.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if (!project.extra.has("duplicated-project-sources")) {
3737
spotless {
3838
kotlinGradle {
3939
ktfmt().googleStyle()
40-
licenseHeaderFile(rootProject.file("codestyle/copyright-header-java.txt"), "$")
40+
// licenseHeaderFile(rootProject.file("codestyle/copyright-header-java.txt"), "$")
4141
target("*.gradle.kts", "build-logic/*.gradle.kts", "build-logic/src/**/*.kt*")
4242
}
4343
}

build-logic/src/main/kotlin/polaris-spotless.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ if (!project.extra.has("duplicated-project-sources")) {
3131
java {
3232
target("src/*/java/**/*.java")
3333
googleJavaFormat()
34-
licenseHeaderFile(rootProject.file("codestyle/copyright-header-java.txt"))
35-
endWithNewline()
34+
// licenseHeaderFile(rootProject.file("codestyle/copyright-header-java.txt"))
35+
// endWithNewline()
3636
custom(
3737
"disallowWildcardImports",
3838
object : Serializable, FormatterFunc {
@@ -49,7 +49,7 @@ if (!project.extra.has("duplicated-project-sources")) {
4949
}
5050
kotlinGradle {
5151
ktfmt().googleStyle()
52-
licenseHeaderFile(rootProject.file("codestyle/copyright-header-java.txt"), "$")
52+
// licenseHeaderFile(rootProject.file("codestyle/copyright-header-java.txt"), "$")
5353
target("*.gradle.kts")
5454
}
5555
format("xml") {

0 commit comments

Comments
 (0)