You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
814 B
23 lines
814 B
/** |
|
*<p> |
|
* 镜像仓库配置 |
|
*</p> |
|
* |
|
* @Author: entfrm开发团队-王翔 |
|
* @since: 2022/10/15 |
|
*/ |
|
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() |
|
handler.maven { url 'https://developer.huawei.com/repo/'} |
|
} |
|
|
|
ext.addCommonMaven = this.&addCommonMaven |