/*
 * Copyright (C) 2005-2017 Qihoo 360 Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed To in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
buildscript {
    { p, cfg = "rp-config.gradle" -> if (new File(p, cfg).exists()) apply from: "${p}/${cfg}" else if (p.exists()) call(p.parentFile) }(buildscript.sourceFile.parentFile)
    repositories {
//        mavenLocal()
        jcenter()
        google()
        maven{
            url "https://dl.bintray.com/froyo-github/Replugin-AndroidX"
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.1'
        classpath "io.github.froyohuang:replugin-plugin-gradle-androidx:${RP_VERSION}"
    }
}

allprojects {
    repositories {
//        mavenLocal()
        jcenter()
        google()
        maven{
            url "https://dl.bintray.com/froyo-github/Replugin-AndroidX"
        }
    }
}

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