aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
blob: 33d7cd077db4489a7589b49809111041060362b7 (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
import kau.ChangelogGenerator
import kau.Plugins

buildscript {

    repositories {
        google()
        mavenCentral()
        maven { url 'https://maven.fabric.io/public' }
        maven { url "https://plugins.gradle.org/m2/" }
    }

    dependencies {
        classpath Plugins.android
        classpath Plugins.kotlin
        classpath Plugins.bugsnag
        classpath Plugins.playPublisher
        classpath Plugins.dexCount
        classpath Plugins.gitVersion
        classpath Plugins.spotless
        classpath Plugins.aboutLibraries
        classpath Plugins.hilt
    }

    wrapper.setDistributionType(Wrapper.DistributionType.ALL)
}

task generateChangelogMd {
    ChangelogGenerator.generate("${project.rootDir}/sample/src/main/res/xml/kau_changelog.xml", "${project.rootDir}/docs/Changelog.md")
}

subprojects {

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

    apply plugin: 'com.gladed.androidgitversion'

    apply from: '../spotless.gradle'

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