gradle:secure protocol (like HTTPS) or allow insecure protocols

最近在编译cruise-control-2.5.92,gradle提示

Using insecure protocols with repositories, without explicit opt-in, has been deprecated. This is scheduled to be removed in Gradle 7.0. Switch Maven repository 'm
aven(http://maven.aliyun.com/nexus/content/groups/public/)' to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/6.8.3/dsl/or
g.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.
Configuration on demand is an incubating feature.

解决方法:

repositories {
    ...
        
    maven {
        allowInsecureProtocol = true
        ...
    }
}

 

posted @ 2022-05-19 10:54  大数据从业者FelixZh  阅读(2079)  评论(0编辑  收藏  举报