mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 00:07:05 +05:30
feat: configure Spotless license headers
This commit is contained in:
parent
720f946f41
commit
5319669a8e
2 changed files with 9 additions and 1 deletions
|
@ -25,12 +25,14 @@ class SpotlessPlugin : Plugin<Project> {
|
|||
kotlin {
|
||||
ktfmt(KTFMT_VERSION).googleStyle()
|
||||
target("**/*.kt")
|
||||
targetExclude("**/build/", "**/gen/")
|
||||
targetExclude("**/build/", "/spotless/")
|
||||
licenseHeaderFile(project.file("spotless/license.kt"))
|
||||
}
|
||||
kotlinGradle {
|
||||
ktfmt(KTFMT_VERSION).googleStyle()
|
||||
target("**/*.kts")
|
||||
targetExclude("**/build/")
|
||||
licenseHeaderFile(project.file("spotless/license.kt"), "import|plugins|@file")
|
||||
}
|
||||
format("xml") {
|
||||
target("**/*.xml")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue