随笔- 191  文章- 0  评论- 3  阅读- 59113 

文件路径:

C:\Users\laremehpe\.gradle\init.gradle
allprojects {
    repositories {
        def REPOSITORY_URL = 'https://maven.aliyun.com/repository/gradle-plugin'
        all { ArtifactRepository repo ->
            if (repo instanceof MavenArtifactRepository) {
                def url = repo.url.toString()
                if (url.startsWith('https://services.gradle.org') ||
                        url.startsWith('https://downloads.gradle.org')) {
                    project.logger.lifecycle "Changing repository URL for ${repo.url} to $REPOSITORY_URL."
                    repo.url = new URL(REPOSITORY_URL)
                }
            }
        }
    }
}

 

 posted on   laremehpe  阅读(466)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· DeepSeek在M芯片Mac上本地化部署
点击右上角即可分享
微信分享提示