Skip to content

Commit

Permalink
Fix Windows gradlew for TLS 1.2 protocol (#608)
Browse files Browse the repository at this point in the history
Change-Id: I48dd88b9f6e6f183972b3122cac7f4918f08b891
  • Loading branch information
frankfliu authored Feb 4, 2021
1 parent 1c0bb35 commit 38362fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38362fb

Please sign in to comment.