gradle mavenCentral()、jcenter()、google()仓库配置成阿里云
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                gradle mavenCentral()、jcenter()、google()仓库配置成阿里云
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                
                            
                            
                            //buildscript里是gradle腳本執行所需依賴,分別是對應的maven庫和插件
buildscript {repositories {
//        google()
//        jcenter()maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }}dependencies {classpath 'com.android.tools.build:gradle:3.1.3'classpath 'com.novoda:bintray-release:+'// NOTE: Do not place your application dependencies here; they belong// in the individual module build.gradle files}
}//allprojects里是項目本身需要的依賴
allprojects {repositories {
//        google()
//        jcenter()maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }}tasks.withType(Javadoc) { // 新增options.addStringOption('Xdoclint:none', '-quiet')options.addStringOption('encoding', 'UTF-8')}
}task clean(type: Delete) {delete rootProject.buildDir
} 
                        
                        
                        mavenCentral()、jcenter()、google()倉庫
https://blog.csdn.net/luoguopeng/article/details/91977554
gradle repository 設置國產阿里鏡像倉庫地址,加速下載jar包
https://lixuekai.blog.csdn.net/article/details/110482498
總結
以上是生活随笔為你收集整理的gradle mavenCentral()、jcenter()、google()仓库配置成阿里云的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 什么是java双亲委派机制
- 下一篇: idea GsonFormat插件使用报
