aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
blob: bdad1e5f80d0c1253e1b83c03aa11c1a5ab13982 (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
buildscript {
    repositories {
        google()
        jcenter()
        maven { url 'https://maven.fabric.io/public' }
        maven { url "https://plugins.gradle.org/m2/" }
    }

    dependencies {
        // https://mvnrepository.com/artifact/com.android.tools.build/gradle?repo=google
        classpath("com.android.tools.build:gradle:3.4.1")
        // https://kotlinlang.org/docs/reference/using-gradle.html
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.31")
        // https://github.com/dcendents/android-maven-gradle-plugin/releases
        classpath("com.github.dcendents:android-maven-gradle-plugin:2.1")
        // https://github.com/Triple-T/gradle-play-publisher/releases
        classpath("com.github.triplet.gradle:play-publisher:2.1.0")
        // https://github.com/KeepSafe/dexcount-gradle-plugin/releases
        classpath("com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.6")
        // https://github.com/gladed/gradle-android-git-version/releases
        classpath("com.gladed.androidgitversion:gradle-android-git-version:0.4.9")
        // https://github.com/diffplug/spotless/blob/master/plugin-gradle/CHANGES.md
        classpath("com.diffplug.spotless:spotless-plugin-gradle:3.21.1")
    }

    wrapper.setDistributionType(Wrapper.DistributionType.ALL)
}

apply plugin: "ca.allanwang.kau"

task clean(type: Delete) {
    delete rootProject.buildDir
}

task generateChangelogMd {
    kauChangelog.generate("${project.rootDir}/sample/src/main/res/xml/kau_changelog.xml")
}

subprojects {

    if (it.name == 'gradle-plugin')
        return

    apply plugin: 'com.gladed.androidgitversion'

    apply from: '../spotless.gradle'

    repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }
    }
}