Android 全局配置Gradle依赖及插件仓库-init.gradle.kt

时间:2024-04-07 16:46:01
allprojects {
    buildscript {
        repositories {
            maven("https://maven.aliyun.com/repository/public")
            maven("https://maven.aliyun.com/repository/central")
            maven("https://maven.aliyun.com/repository/jcenter")
            maven("https://maven.aliyun.com/repository/gradle-plugin")
            mavenCentral()
            mavenLocal()
            google()
        }
    }
    repositories {
        maven("https://maven.aliyun.com/repository/public")
        maven("https://maven.aliyun.com/repository/central")
        maven("https://maven.aliyun.com/repository/jcenter")
        maven("https://maven.aliyun.com/repository/gradle-plugin")
        google()
        mavenLocal()
    }
}