优化:GitHub Actions 拉取依赖失败

pull/231/head
pppscn 2 years ago
parent 5f4d5f6cc8
commit 851e514056

@ -27,13 +27,14 @@ buildscript {
allprojects {
repositories {
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()
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' }
}
}

@ -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' }

Loading…
Cancel
Save