// settings.gradle.kts
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
google()
// 添加镜像仓库
maven { url = uri("https://maven.aliyun.com/repository/public") }
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
gradlePluginPortal()
mavenCentral()
google()
// 添加镜像仓库
maven { url = uri("https://maven.aliyun.com/repository/public") }
}
}
转载请注明: 转载自 浮生一程
本文链接地址 settings.gradle.kts 文件配置阿里云镜像加速