From 38362fb50aaf7c8918072388a64ec3972c3b878e Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Thu, 4 Feb 2021 13:26:07 -0800 Subject: [PATCH] Fix Windows gradlew for TLS 1.2 protocol (#608) Change-Id: I48dd88b9f6e6f183972b3122cac7f4918f08b891 --- gradlew.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gradlew.bat b/gradlew.bat index 3e849f7db75..57a4349e293 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -73,7 +73,8 @@ if exist %CLASSPATH% ( ) else ( echo Couldn't find %CLASSPATH%, downloading it ... echo Downloading from: %DOWNLOAD_URL% - powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%CLASSPATH%')" + powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%CLASSPATH%')" + echo Finished downloading %CLASSPATH% ) @rem End of extension