-
下载gradle包,解压
https://gradle.org/install/#manually
-
创建一个本地仓库
mkdir /Users/caidingnu/save/gradle-8.5/gradlerep
如果需要全局适应 gradle,环境变量自行配置
-
-
配置阿里云仓库
路径: /Users/caidingnu/save/gradle-8.5/init.d/ init.gradle配置:
allprojects {repositories {mavenLocal()maven { name "Alibaba"; url "https://maven.aliyun.com/repository/public" }maven { name "Bstek"; url "https://nexus.bsdn.org/content/groups/public/" }mavenCentral()}buildscript {repositories {maven { name "Alibaba"; url 'https://maven.aliyun.com/repository/public' }maven { name "Bstek"; url 'https://nexus.bsdn.org/content/groups/public/' }maven { name "M2"; url 'https://plugins.gradle.org/m2/' }}} }
-
idea 配置文件修改