Groovy - Grab - download failed

前端 未结 7 1095
梦如初夏
梦如初夏 2020-12-08 09:29

I have a fresh installation of Groovy 2.1.4 and I\'d like to create a script that uses HTTP builder.

I\'ve added the following line at the top of the script:

7条回答
  •  既然无缘
    2020-12-08 09:57

    I had a similar error when using Groovy + Java 7. The error from groovy was:

    General error during conversion: Error grabbing Grapes -- [unresolved dependency: com.microsoft.sqlserver#mssql-jdbc;6.4.0.jre7: not found]

    When trying the

    grape -V resolve com.microsoft.sqlserver mssql-jdbc 6.4.0.jre7

    command i had these errors:

    1. java.net.SocketException: Connection reset
    2. javax.net.ssl.SSLException: Received fatal alert: protocol_version

    The way to fix this was adding the -Dhttps.protocols=TLSv1.2 parameter:

    grape -Dhttps.protocols=TLSv1.2 -V resolve com.microsoft.sqlserver mssql-jdbc 6.4.0.jre7

    Then the package is downloaded and i can use it from Groovy

提交回复
热议问题