aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/build.gradle.kts
blob: 21eb81badf318500af4fc034dbbc10dd96b75338 (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
51
52
53
54
55
56
57
58
59
60
61
62
/*
 * 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()
  // Dokka's transitive kotlinx-html dependency is only published to their Space repo
  // https://github.com/Kotlin/dokka/releases/tag/v1.4.32
  maven("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") {
    name = "KotlinX HTML Maven"
    content {
      includeModule("org.jetbrains.kotlinx", "kotlinx-html")
      includeModule("org.jetbrains.kotlinx", "kotlinx-html-assembly")
      includeModule("org.jetbrains.kotlinx", "kotlinx-html-common")
      includeModule("org.jetbrains.kotlinx", "kotlinx-html-js")
      includeModule("org.jetbrains.kotlinx", "kotlinx-html-jvm")
    }
  }
}

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("com.android.tools.build:gradle:4.2.0")
  implementation("org.jetbrains.kotlinx:binary-compatibility-validator:0.5.0")
  implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.4.32")
  implementation("de.undercouch:gradle-download-task:4.1.1")
  implementation("com.google.dagger:hilt-android-gradle-plugin:2.35.1")
  implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0")
  implementation("com.ncorti.ktfmt.gradle:plugin:0.5.0")
  implementation("com.vanniktech:gradle-maven-publish-plugin:0.13.0")
  implementation("com.squareup.okhttp3:okhttp:4.9.0")
  implementation("com.vdurmont:semver4j:3.1.0")
}