aliyun gradle 配置

2019-06-12  本文已影响0人  chsh

buildscript {

    ext.kotlin_version = '1.3.31'

    repositories {

        maven { url 'https://jitpack.io' }

        maven { url 'https://maven.aliyun.com/repository/google' }

        maven { url 'https://maven.aliyun.com/repository/jcenter' }

        maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }

    }

    dependencies {

        classpath 'com.android.tools.build:gradle:3.4.1'

        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

        // NOTE: Do not place your application dependencies here; they belong

        // in the individual module build.gradle files

    }

}

allprojects {

    repositories {

        maven { url 'https://jitpack.io' }

        maven { url 'https://maven.aliyun.com/repository/google' }

        maven { url 'https://maven.aliyun.com/repository/jcenter' }

        maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }

    }

}

task clean(type: Delete) {

    delete rootProject.buildDir

}

上一篇 下一篇

猜你喜欢

热点阅读