From ffe919409dc8e86f9739cd7b9ef3c88ec7665050 Mon Sep 17 00:00:00 2001 From: WANG CHAO <1229983126@qq.com> Date: Wed, 20 Feb 2019 20:49:53 +0800 Subject: [PATCH] disable TLS v1.3 protocol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We use Gradle coverall plugin to send the data generated by coverage plugin to coverall.io, so our user can view the coverage report online. However, the TLSv1.3 protocol used by JDK 11 is not supported by the coverall.io, actually it gives the error bellow: javax.net.ssl.SSLProtocolException: Connection reset by peer (Write failed) Let’s disable TLSv1.3 protocol by restricting the scope of protocols in gradle.properties.[1] [1]https://github.com/kt3k/coveralls-gradle-plugin/issues/85 --- gradle.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/gradle.properties b/gradle.properties index 8bee08b60dee..9d9a08905787 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,3 @@ org.gradle.parallel=false org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Xmx1024m -Dfile.encoding=utf-8 +systemProp.jdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2"