feat(build): add copyright license headers to XML files

This commit is contained in:
Harsh Shandilya 2023-07-06 01:43:47 +05:30
parent 1221992d26
commit 9a5a417418
No known key found for this signature in database
14 changed files with 83 additions and 12 deletions

View file

@ -37,10 +37,14 @@ class SpotlessPlugin : Plugin<Project> {
}
format("xml") {
target("**/*.xml")
targetExclude("**/build/", ".idea/")
targetExclude("**/build/", ".idea/", "/spotless/", "**/lint-baseline.xml")
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
licenseHeaderFile(
project.file("spotless/license.xml"),
"<manifest|<resources|<full-backup-content|<data-extraction-rules|<adaptive-icon"
)
}
}
}