优化:GitHub Actions 拉取依赖失败

This commit is contained in:
pppscn 2022-09-03 09:22:12 +08:00
parent 5f4d5f6cc8
commit 851e514056
2 changed files with 11 additions and 6 deletions

View File

@ -27,13 +27,14 @@ buildscript {
allprojects {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
maven { url 'https://repo1.maven.org/maven2/' }
maven { url 'https://oss.sonatype.org/content/repositories/public' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/public' }
mavenCentral()
google()
maven { url "https://jitpack.io" }
maven { url 'https://repo1.maven.org/maven2/' }
}
}

View File

@ -190,9 +190,13 @@ ext.isRelease = this.&isRelease
//
static def addRepos(RepositoryHandler handler) {
handler.mavenLocal()
handler.google { url 'https://maven.aliyun.com/repository/google' }
handler.mavenCentral { url 'https://maven.aliyun.com/repository/central' }
//handler.google { url 'https://maven.aliyun.com/repository/google' }
//handler.mavenCentral { url 'https://maven.aliyun.com/repository/central' }
handler.google()
handler.mavenCentral()
handler.maven { url "https://jitpack.io" }
handler.maven { url 'https://maven.aliyun.com/repository/google' }
handler.maven { url 'https://maven.aliyun.com/repository/central' }
handler.maven { url 'https://maven.aliyun.com/repository/public' }
handler.maven { url "https://repo1.maven.org/maven2/" }
handler.maven { url 'https://oss.sonatype.org/content/repositories/public' }