在 build.gradle.kts 文件中设置:
repositories {
maven { setUrl("https://maven.aliyun.com/repository/public/") }
mavenLocal()
mavenCentral()
}
打开 gradle/wrapper/gradle-wrapper.properties 文件,替换为腾讯云镜像地址:
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-8.8-all.zip
记得要使用 -all 后缀的文件,这是包含源码的。如果只是 -bin 文件,IDEA 有可能会继续从 gradle 官网下载源码,速度巨慢!
参与讨论
(Participate in the discussion)
参与讨论