Spring源码阅读环境&&Grandle错误异常:Using insecure protocols with repositories, without explicit opt-in, is un

1,错误描述:

修改Grandle的源为阿里云的maven源之后,打开Spring源码阅读环境出现一下错误。

Execution failed for task ':buildSrc:compileJava'.
> Could not resolve all dependencies for configuration ':buildSrc:compileClasspath'.
   > Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven(http://maven.aliyun.com/nexus/content/groups/public/)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.2/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details. 

* Try:
Run with --stacktrace option to get the stack trace. 
Run with --info or --debug option to get more log output. 
Run with --scan to get full insights.

在这里插入图片描述

2,解决:

检查我们的阿里云下载配置文件:
Spring源码阅读环境&&Grandle错误异常:Using insecure protocols with repositories, without explicit opt-in, is un_第1张图片
打开:
Spring源码阅读环境&&Grandle错误异常:Using insecure protocols with repositories, without explicit opt-in, is un_第2张图片
各位可以看到了,上面出现的错误是,使用协议错误,使用http协议所以报了个不安全错误。
改为https
Spring源码阅读环境&&Grandle错误异常:Using insecure protocols with repositories, without explicit opt-in, is un_第3张图片

你可能感兴趣的:(Spring全家桶系列,环境配置,spring,gradle,java)