build.gradle 1.06 KB
Newer Older
1 2 3
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
Christophe Henry's avatar
Christophe Henry committed
4 5
    ext.kotlin_version = "1.3.72"
    ext.android_navigation = "2.2.2"
6

7 8 9
    repositories {
        google()
        jcenter()
10 11
        maven { url "https://jitpack.io" }
        mavenCentral()
12 13
    }
    dependencies {
Christophe Henry's avatar
Christophe Henry committed
14
        classpath "com.android.tools.build:gradle:3.6.3"
15
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
16
        classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$android_navigation"
17 18 19

        // Lint
        classpath "com.diffplug.spotless:spotless-plugin-gradle:3.22.0"
20 21 22 23 24 25 26
    }
}

allprojects {
    repositories {
        google()
        jcenter()
27 28
        maven { url "https://jitpack.io" }
        mavenCentral()
29 30 31 32 33 34
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
35 36 37 38

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
    kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlin.Experimental"]
}
39 40

task lintAllFix([dependsOn: ["app:lintFix", "app:spotlessApply"]]) {}