美文网首页
Android 文件Maven 使用阿里去配置

Android 文件Maven 使用阿里去配置

作者: 李飞_fd28 | 来源:发表于2020-04-11 19:07 被阅读0次
    // Top-level build file where you can add configuration options common to all sub-projects/modules.
    
    buildscript {
        repositories {
            maven { url 'https://maven.aliyun.com/repository/central' }
            maven { url 'https://maven.aliyun.com/repository/google' }
            maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
            maven { url 'https://maven.aliyun.com/repository/jcenter' }
            maven { url 'https://maven.aliyun.com/repository/public' }
    
            mavenLocal()
    
            jcenter()
            maven { url 'https://maven.fabric.io/public' }
            google()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.6.2'
            classpath 'com.github.ben-manes:gradle-versions-plugin:0.13.0'
            classpath 'io.fabric.tools:gradle:1.28.0'
    
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
    
    allprojects {
        repositories {
            maven { url 'https://maven.aliyun.com/repository/central' }
            maven { url 'https://maven.aliyun.com/repository/google' }
            maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
            maven { url 'https://maven.aliyun.com/repository/jcenter' }
            maven { url 'https://maven.aliyun.com/repository/public' }
    
            mavenLocal()
    
            jcenter()
            maven { url "https://jitpack.io" }
            maven { url 'https://maven.fabric.io/public' }
        }
    }
    
    task clean(type: Delete) {
        delete rootProject.buildDir
    }
    

    相关文章

      网友评论

          本文标题:Android 文件Maven 使用阿里去配置

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