版本工具:spring5.2.x,gradle6.6.1,jdk1.8_241,kotlin1.2.51,groovy2.4.15,IntelliJ IDEA 2019-3
详细步骤及坑见下:
1.下载gradle
在终端执行 brew install gradle ,等待下载完成
配置Path环境 vim .bash_profile
写入
export PATH="${PATH}:/usr/local/Cellar/gradle/5.4.1/bin"
检查 gradle -v
我的成功,显示如下:
2.在github上查找Spring项目,搜索Spring-framework项目,github下载比较慢,这边使用gitee 导入仓库,导入到gitee上后,用gitee的下载地址下载比较快
3.项目导入idea后检查gradle配置
POM relocation to an other version number is not fully supported in Gradle : xml-apis:xml-apis:2.0.2 relocated to xml-apis:xml-apis:1.0.b2.