-
Notifications
You must be signed in to change notification settings - Fork 2
/
maven.gradle
22 lines (21 loc) · 971 Bytes
/
maven.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
static def addCommonMaven(RepositoryHandler handler) {
// 阿里云云效仓库:https://maven.aliyun.com/mvn/guide
handler.maven { url 'https://maven.aliyun.com/repository/public' }
handler.maven { url 'https://maven.aliyun.com/repository/google' }
// 华为开源镜像:https://mirrors.huaweicloud.com
handler.maven { url 'https://repo.huaweicloud.com/repository/maven' }
// JitPack 远程仓库:https://jitpack.io
handler.maven { url 'https://jitpack.io' }
// MavenCentral 远程仓库:https://mvnrepository.com
handler.mavenCentral()
handler.google()
// noinspection JcenterRepositoryObsolete
handler.jcenter()
// 阿里云云效仓库(Gradle 插件):https://maven.aliyun.com/mvn/guide
handler.maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
// 配置Mob Maven库
handler.maven {
url "https://mvn.mob.com/android"
}
}
ext.addCommonMaven = this.&addCommonMaven