Hi,
I have a strange behavior using gradle through a proxy. When using the gradle command line in my projects, the dependencies are downloaded correctly. When using the Netbeans plugin for gradle which uses the tooling API, it blocks and finally I get the error :
Caused by: org.netbeans.gradle.model.util.TransferableExceptionWrapper: >org.gradle.api.internal.externalresource.transport.http.HttpRequestException: Could not HEAD ‘http://repo.jfrog.org/artifactory/repo1-cache/junit/junit/4.10/junit-4.10.jar’. >… >Caused by: org.netbeans.gradle.model.util.TransferableExceptionWrapper: java.net.SocketException: Malformed reply from SOCKS server
I have the following setting in my build.gradle :
repositories {
maven {
url “http://repo.jfrog.org/artifactory/repo1-cache”
}
maven {
url “http://repo.jfrog.org/artifactory/jcenter-cache”
}
}
I have also set the proxy configuration in %GRADLE_USER_HOME%\gradle.properties file :
systemProp.http.proxyUser=myUser
systemProp.http.proxyPassword=mySecret
systemProp.http.proxyHost=proxy.intranet
systemProp.http.proxyPort=8080
systemProp.http.nonProxyHosts=*.intranet|localhost
systemProp.https.proxyUser=myUser
systemProp.https.proxyPassword=mySecret
systemProp.https.proxyHost=proxy.intranet
systemProp.https.proxyPort=8080
systemProp.https.nonProxyHosts=*.intranet|localhost
Is there something special to care using gradle tooling API? I am wondering why the error mentions SOCKS server… Is the tooling API using the socks protocol?
FYI : I have opened an issue in the Netbeans plugin list too Issue 139