summaryrefslogtreecommitdiff
path: root/buildSrc/build.gradle.kts
blob: 05fc2284587095923ab97eb0407e517d507f6b46 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 * 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.5.0"
}

repositories {
  google()
  gradlePluginPortal()
  mavenCentral()
  // For binary compatibility validator.
  maven { url = uri("https://kotlin.bintray.com/kotlinx") }
}

ktfmt {
  googleStyle()
  maxWidth.set(120)
}

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(libs.androidGradlePlugin)
  implementation(libs.binaryCompatibilityValidator)
  implementation(libs.dokkaPlugin)
  implementation(libs.downloadTaskPlugin)
  implementation(libs.kotlinGradlePlugin)
  implementation(libs.ktfmtGradlePlugin)
  implementation(libs.mavenPublishPlugin)
  implementation(libs.semver4j)
}