buildscript {
    repositories {
        google()
        jcenter()
        mavenCentral()
    }

    ext {
        ktlintPlugin = "${rootProject.projectDir}/ktlint.gradle"

        bintray = [
            'userOrg' : 'gantonious',
            'groupId' : 'ca.antonious',
            'publishVersion' : '0.7.4',
            'website' : "https://github.com/gantonious/MaterialDayPicker"
        ]

        versions = [
            'compileSdk' : 30,
            'targetSdk' : 30,
            'minSdk' : 19,
            'kotlin' : '1.3.61',
            'ktlint' : '0.36.0',
            'junit' : '4.12',
            'bintrayRelease' : '0.9.1',
            'android' : [
                'gradleVersion' : '3.6.1',
            ],
            // https://developer.android.com/jetpack/androidx/versions
            'androidx' : [
                'appCompat' : '1.2.0',
                'ktx': '1.3.2',
                'constraintLayout' : '2.0.2',
                'core' : '1.3.2'
            ]
        ]

        depends = [
            'kotlin' : [
                'stdlib' : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}",
                'lint' : "com.pinterest:ktlint:${versions.ktlint}"
            ],
            'junit' : "junit:junit:${versions.junit}",
            'androidx' : [
                'appCompatV7' : "androidx.appcompat:appcompat:${versions.androidx.appCompat}",
                'ktx' : "androidx.core:core-ktx:${versions.androidx.ktx}",
                'constraintLayout' : "androidx.constraintlayout:constraintlayout:${versions.androidx.constraintLayout}",
                'core' : "androidx.core:core:${versions.androidx.core}"
            ]
        ]

    }

    dependencies {
        classpath "com.android.tools.build:gradle:${versions.android.gradleVersion}"
        classpath "com.novoda:bintray-release:${versions.bintrayRelease}"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
    }
}


allprojects {
    repositories {
        google()
        jcenter()
    }
}

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