diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2021-11-09 21:33:59 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2021-11-15 23:57:40 +0530 |
commit | 96a9211f9eeb2bb12fb5cc745f7955dfda95014b (patch) | |
tree | d8c0c8a30903746713da47e35bc061450a51ab05 /build-logic/src/main | |
parent | 1040552dbfdfc9f4f55402d796af5b270a172a54 (diff) |
build-logic: migrate Spotless to a convention plugin
Diffstat (limited to 'build-logic/src/main')
-rw-r--r-- | build-logic/src/main/kotlin/com.github.android-password-store.spotless.gradle.kts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/build-logic/src/main/kotlin/com.github.android-password-store.spotless.gradle.kts b/build-logic/src/main/kotlin/com.github.android-password-store.spotless.gradle.kts new file mode 100644 index 00000000..3d5e589d --- /dev/null +++ b/build-logic/src/main/kotlin/com.github.android-password-store.spotless.gradle.kts @@ -0,0 +1,24 @@ +/* + * 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") + } + format("xml") { + target("**/*.xml") + targetExclude("**/build/", ".idea/") + trimTrailingWhitespace() + indentWithSpaces() + endWithNewline() + } +} |