赞
踩
下载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 配置文件修改
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。