Created
December 21, 2019 13:50
-
-
Save CaiJingLong/1d0fc9212bd4b78c48f4abb788038abe to your computer and use it in GitHub Desktop.
阿里云 gradle maven仓库配置
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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