From c2e2e4f842919ba0eab3c4ce5be7fd3fad3ab328 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 14 Nov 2021 11:27:44 +0530 Subject: Convert build-logic to a proper included build --- ...thub.android-password-store.spotless.gradle.kts | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.spotless.gradle.kts (limited to 'build-logic/kotlin-plugins/src') 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() + } +} -- cgit v1.2.3