AndroidProject/maven.gradle

16 lines
714 B
Groovy
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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()
}
ext.addCommonMaven = this.&addCommonMaven