Skip to content

Instantly share code, notes, and snippets.

@CaiJingLong
Created December 21, 2019 13:50
Show Gist options
  • Save CaiJingLong/1d0fc9212bd4b78c48f4abb788038abe to your computer and use it in GitHub Desktop.
Save CaiJingLong/1d0fc9212bd4b78c48f4abb788038abe to your computer and use it in GitHub Desktop.
阿里云 gradle maven仓库配置
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
maven{
url 'https://maven.aliyun.com/repository/google'
}
maven{
url 'https://maven.aliyun.com/repository/jcenter'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
maven{
url 'https://maven.aliyun.com/repository/google'
}
maven{
url 'https://maven.aliyun.com/repository/jcenter'
}
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment