gradle build connection reset or protocol_version build failure

gradle build connection reset or protocol_version build failure


Maven Central and Bintray have announced that they will discontinue support for TLS v1.1 and below. You will be affected if you are using Java 6 or 7 and using Gradle versions 2.1 through 4.8.

Check gradle version

gradle --version
You must take action if all of these are true:

JVM version is Java 7u130 or lower and
Gradle version is between 2.1 and 4.8, inclusive
and you have declared a repository {} of mavenCentral() or jcenter()
You can take any one of the following actions to use TLS v1.2+:

Run Gradle with Java 1.7.0_131-b31 or above
or upgrade to Gradle 4.8.1 or above
or replace mavenCentral() with maven { url = "http://repo.maven.apache.org/maven2" } and jcenter() with maven { url = "http://jcenter.bintray.com" }
The first two solutions are recommended, as the third opens a possible attack vector.

Source:https://blog.gradle.org

If you are using Maven use the command given below

mvn -Dhttps.protocols=TLSv1.2 install
 

转载于:https://my.oschina.net/zdglf/blog/3000564

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值