android build.gradle文件

apply from: "config.gradle"
apply plugin: 'com.alibaba.arouter'
buildscript {

    repositories {
//        mavenCentral()

        maven{
            url 'file://E:/nexus/sonatype-work/nexus/storage/xp/'
        }
        maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
        google()
        maven { url "https://jitpack.io" }
//        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.1'
        classpath "com.alibaba:arouter-register:1.0.2"
        classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-rc2'

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

allprojects {
    repositories {
//        mavenCentral()
        maven{
            url 'file://E:/nexus/sonatype-work/nexus/storage/xp/'
        }
        maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
        google()
        maven { url "https://jitpack.io" }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
subprojects {
    project.configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'com.android.support'
                    && !details.requested.name.contains('multidex')) {
                details.useVersion "27.0.1"
            }
        }
    }
}

基於文件系統的倉庫

  maven{
            url 'file://E:/nexus/sonatype-work/nexus/storage/xp/'
        }

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章