1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

set gradle mirrors

This commit is contained in:
2024-03-20 23:21:02 +08:00
parent 0ac4892ac9
commit aa51d442e7
3 changed files with 46 additions and 77 deletions

View File

@@ -8,8 +8,37 @@ buildscript {
kotlinVersion = "1.8.0"
}
repositories {
/**
* google
*/
maven { url "https://maven.aliyun.com/repository/google" }
/**
* gradle-plugin
* 源地址: https://plugins.gradle.org/m2/
*/
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
/**
* central仓和jcenter仓的聚合仓
* 阿里云仓库地址(老版): https://maven.aliyun.com/nexus/content/groups/public/
*/
maven { url "https://maven.aliyun.com/repository/public" }
/**
* central
* 源地址: https://repo1.maven.org/maven2/
*/
maven { url "https://maven.aliyun.com/repository/central" }
/**
* jcenter
*/
maven { url "https://maven.aliyun.com/repository/jcenter" }
// 原始
google()
mavenCentral()
// mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle")
@@ -19,3 +48,13 @@ buildscript {
}
apply plugin: "com.facebook.react.rootproject"
allprojects {
repositories {
maven { url "https://maven.aliyun.com/repository/google" }
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "https://maven.aliyun.com/repository/jcenter" }
}
}

View File

@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-8.3-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME