美文网首页
settings.gradle.kts 设置阿里源

settings.gradle.kts 设置阿里源

作者: lajunta | 来源:发表于2024-05-07 10:37 被阅读0次
    pluginManagement {
        repositories {
            maven { setUrl("https://maven.aliyun.com/repository/public/") }
            maven { setUrl("https://maven.aliyun.com/repository/spring/")}
            maven { setUrl("https://maven.aliyun.com/repository/google/")}
            maven { setUrl("https://maven.aliyun.com/repository/spring-plugin/")}
            maven { setUrl("https://maven.aliyun.com/repository/grails-core/")}
            maven { setUrl("https://maven.aliyun.com/repository/apache-snapshots/")}
            maven { setUrl("https://mirrors.cloud.tencent.com/nexus/repository/maven-public/") }
            maven { setUrl("https://maven.aliyun.com/repository/central") }
            maven { setUrl("https://maven.aliyun.com/repository/jcenter") }
            maven { setUrl("https://maven.aliyun.com/repository/gradle-plugin") }
            google {
                content {
                    includeGroupByRegex("com\\.android.*")
                    includeGroupByRegex("com\\.google.*")
                    includeGroupByRegex("androidx.*")
                }
            }
            mavenCentral()
            gradlePluginPortal()
        }
    }
    dependencyResolutionManagement {
        repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
        repositories {
            google()
            mavenCentral()
        }
    }
    
    rootProject.name = "HappyBirthday"
    include(":app")
    

    相关文章

      网友评论

          本文标题:settings.gradle.kts 设置阿里源

          本文链接:https://www.haomeiwen.com/subject/uzvrfjtx.html