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