美文网首页
gradle配置阿里镜像

gradle配置阿里镜像

作者: 与诗小睡 | 来源:发表于2020-07-04 15:06 被阅读0次
    buildscript {
        
        repositories {
           mavenLocal()
    //        google()
    //        jcenter()
            maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/' }
            maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.0.1'
            classpath 'com.jakewharton:butterknife-gradle-plugin:8.4.0'
            classpath "com.tencent.tinker:tinker-patch-gradle-plugin:${TINKER_VERSION}"
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
    
    allprojects {
        repositories {
    //        google()
    //        jcenter()
            maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/' }
            maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
        }
    }
    
    task clean(type: Delete) {
        delete rootProject.buildDir
    }
    
    
    

    相关文章

      网友评论

          本文标题:gradle配置阿里镜像

          本文链接:https://www.haomeiwen.com/subject/fjyuqktx.html