Gradle:Use Maven Mirror

来自WHY42
Riguz留言 | 贡献2023年10月9日 (一) 05:03的版本 (Created page with "~/.gradle/init.gradle <syntaxhighlight lang="java"> allprojects { buildscript { repositories { maven { url 'https://maven.aliyun.com/repository/public/' } maven { url 'https://maven.aliyun.com/repository/google/' } } } repositories { maven { url 'https://maven.aliyun.com/repository/public/' } maven { url 'https://maven.aliyun.com/repository/google/' } } } </syntaxhighlight>")
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

~/.gradle/init.gradle

allprojects {
    buildscript {
        repositories {
            maven { url 'https://maven.aliyun.com/repository/public/' }
            maven { url 'https://maven.aliyun.com/repository/google/' }
        }
    }

    repositories {
        maven { url 'https://maven.aliyun.com/repository/public/' }
        maven { url 'https://maven.aliyun.com/repository/google/' }
    }
}