Android-Password-Store/buildSrc/build.gradle.kts
Harsh Shandilya c85a31f885
buildSrc: properly apply ktfmt plugin and reformat
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-03-20 14:58:17 +05:30

52 lines
1.2 KiB
Text

/*
* Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
* SPDX-License-Identifier: GPL-3.0-only
*/
plugins {
`kotlin-dsl`
id("com.ncorti.ktfmt.gradle") version "0.4.0"
}
repositories {
google()
gradlePluginPortal()
mavenCentral()
// For binary compatibility validator.
maven { url = uri("https://kotlin.bintray.com/kotlinx") }
}
ktfmt {
googleStyle()
maxWidth.set(120)
}
kotlinDslPluginOptions { experimentalWarning.set(false) }
gradlePlugin {
plugins {
register("aps") {
id = "aps-plugin"
implementationClass = "PasswordStorePlugin"
}
register("crowdin") {
id = "crowdin-plugin"
implementationClass = "CrowdinDownloadPlugin"
}
register("versioning") {
id = "versioning-plugin"
implementationClass = "VersioningPlugin"
}
}
}
dependencies {
implementation(Plugins.androidGradlePlugin)
implementation(Plugins.binaryCompatibilityValidator)
implementation(Plugins.dokkaPlugin)
implementation(Plugins.downloadTaskPlugin)
implementation(Plugins.kotlinGradlePlugin)
implementation(Plugins.ktfmtGradlePlugin)
implementation(Plugins.mavenPublishPlugin)
implementation(Plugins.semver4j)
}