Convert build-logic to a proper included build

This commit is contained in:
Harsh Shandilya 2021-11-14 11:27:44 +05:30
parent cbadee43cd
commit c2e2e4f842
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
6 changed files with 10 additions and 7 deletions

View file

@ -0,0 +1,25 @@
/*
* Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
* SPDX-License-Identifier: GPL-3.0-only
*/
plugins { id("com.diffplug.spotless") }
spotless {
kotlin {
ktfmt().googleStyle()
target("**/*.kt")
targetExclude("**/build/")
}
kotlinGradle {
ktfmt().googleStyle()
target("**/*.kts")
targetExclude("**/build/")
}
format("xml") {
target("**/*.xml")
targetExclude("**/build/", ".idea/")
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
}
}