一、下载地址
https://gradle.org/releases/
https://downloads.gradle.org/distributions/gradle-8.2-bin.zip
解压后放到合适的位置
二、配置环境变量并测试
D:\ProgramFiles\gradle-8.2\bin
gradle -v
三、配置镜像
D:\ProgramFiles\gradle-8.2\init.d
init.gradle,如果没有这个文件,新建即可
allprojects { repositories { mavenLocal() maven { name "Alibaba" ; url "https://maven.aliyun.com/repository/public" } mavenCentral() } buildscript { repositories { maven { name "Alibaba" ; url 'https://maven.aliyun.com/repository/public' } maven { name "M2" ; url 'https://plugins.gradle.org/m2/' } } } }
四、配置IDEA