一行解决IDEA中gradle下载依赖jar包慢问题(适用于各操作系统)

背景

准备研究 spring 源码,从 github 下载到本地打开构建时,发现下载依赖慢死了。

解决

在build.gradle文件中添加国内镜像

repositories { maven{ url'http://maven.aliyun.com/nexus/content/groups/public/'} }

猜你喜欢

转载自blog.csdn.net/qq_33589510/article/details/106963762