// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext{
        kotlin_version = '1.3.21'
        anko_version='0.10.5'
        fuel_version='1.15.0'
        lifecycle_version = "1.1.1"
        support_library_version='26.1.0'
        fablic_version = '1.30.0'
    }
    repositories {
        google()
        jcenter()
        maven { url 'https://maven.fabric.io/public'}
        maven { url "https://jitpack.io" }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.2'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files

        classpath "io.fabric.tools:gradle:$fablic_version"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

allprojects {
    repositories {
        jcenter()
        maven { url 'https://maven.fabric.io/public'}
        maven { url 'https://jitpack.io' }
        google()
    }
    // 컴파일 옵션 추가
    gradle.projectsEvaluated {
        tasks.withType(JavaCompile) {
            options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
        }
    }
}

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