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

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.2'

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

allprojects {
    repositories {
        jcenter()
    }
}

//task clean(type: Delete) {
//    delete rootProject.buildDir
//}
apply plugin: 'maven'
uploadArchives {
    repositories {
        mavenDeployer {
            repository(url: "file://"+rootDir.getParent()+"/publish")
//            repository(url: "http://192.168.1.30:8081/nexus/content/repositories/android/") {
//                authentication(userName: "admin", password: "admin123")
//            }
        }
    }
}

ext {
    repository = this.uploadArchives.repositories.mavenDeployer.repository
}