mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-07 16:09:38 +02:00
32 lines
761 B
Kotlin
32 lines
761 B
Kotlin
/*
|
|
* Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
*/
|
|
|
|
import com.diffplug.gradle.spotless.SpotlessExtension
|
|
import org.gradle.api.Project
|
|
import org.gradle.kotlin.dsl.apply
|
|
import org.gradle.kotlin.dsl.configure
|
|
|
|
fun Project.configureSpotless() {
|
|
apply(plugin = "com.diffplug.spotless")
|
|
configure<SpotlessExtension> {
|
|
kotlin {
|
|
ktfmt().googleStyle()
|
|
target("**/*.kt")
|
|
targetExclude("**/build/")
|
|
}
|
|
kotlinGradle {
|
|
ktfmt().googleStyle()
|
|
target("**/*.kts")
|
|
}
|
|
format("xml") {
|
|
target("**/*.xml")
|
|
targetExclude("**/build/", ".idea/")
|
|
trimTrailingWhitespace()
|
|
indentWithSpaces()
|
|
endWithNewline()
|
|
}
|
|
}
|
|
}
|