summaryrefslogtreecommitdiff
path: root/build-logic/kotlin-plugins/src/main
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-11-14 11:27:44 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2021-11-16 00:22:16 +0530
commitc2e2e4f842919ba0eab3c4ce5be7fd3fad3ab328 (patch)
tree8bb045261988382c77b2f4d920825cd511265dab /build-logic/kotlin-plugins/src/main
parentcbadee43cd0cd3b1cd99d5cbcb271f27cbf13dd4 (diff)
Convert build-logic to a proper included build
Diffstat (limited to 'build-logic/kotlin-plugins/src/main')
-rw-r--r--build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.spotless.gradle.kts25
1 files changed, 25 insertions, 0 deletions
diff --git a/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.spotless.gradle.kts b/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.spotless.gradle.kts
new file mode 100644
index 00000000..83fae3d5
--- /dev/null
+++ b/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.spotless.gradle.kts
@@ -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()
+ }
+}