build.gradle 1.02 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
    ext.kotlin_version = "1.3.50"
5 6 7
    repositories {
        google()
        jcenter()
8 9
        maven { url "https://jitpack.io" }
        mavenCentral()
10 11
    }
    dependencies {
Christophe Henry's avatar
Christophe Henry committed
12
        classpath "com.android.tools.build:gradle:3.5.0"
13
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14 15 16 17
        classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0"

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

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

task clean(type: Delete) {
    delete rootProject.buildDir
}
33 34 35 36

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

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