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