mirror of
https://github.com/msfjarvis/compose-lobsters.git
synced 2024-06-02 20:18:12 +05:30
feat: configure Spotless license headers
This commit is contained in:
parent
720f946f41
commit
5319669a8e
|
@ -25,12 +25,14 @@ class SpotlessPlugin : Plugin<Project> {
|
||||||
kotlin {
|
kotlin {
|
||||||
ktfmt(KTFMT_VERSION).googleStyle()
|
ktfmt(KTFMT_VERSION).googleStyle()
|
||||||
target("**/*.kt")
|
target("**/*.kt")
|
||||||
targetExclude("**/build/", "**/gen/")
|
targetExclude("**/build/", "/spotless/")
|
||||||
|
licenseHeaderFile(project.file("spotless/license.kt"))
|
||||||
}
|
}
|
||||||
kotlinGradle {
|
kotlinGradle {
|
||||||
ktfmt(KTFMT_VERSION).googleStyle()
|
ktfmt(KTFMT_VERSION).googleStyle()
|
||||||
target("**/*.kts")
|
target("**/*.kts")
|
||||||
targetExclude("**/build/")
|
targetExclude("**/build/")
|
||||||
|
licenseHeaderFile(project.file("spotless/license.kt"), "import|plugins|@file")
|
||||||
}
|
}
|
||||||
format("xml") {
|
format("xml") {
|
||||||
target("**/*.xml")
|
target("**/*.xml")
|
||||||
|
|
6
spotless/license.kt
Normal file
6
spotless/license.kt
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
/*
|
||||||
|
* Copyright © $YEAR Harsh Shandilya.
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
Loading…
Reference in New Issue
Block a user