kulksam
(Sameer Kulkarni)
July 30, 2015, 9:39am
1
New to gradle
Using eclipse BuildShip plugin to create gradle project
Cannot resolve the junit dependencies
I am behind the corporate proxy. Also specified credentials to bypass proxy in gradle.properties. Still no luck.
exception : org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve junit:junit:4.12.
Please help me to resolve the issue.
Thanks
bmuschko
(Benjamin Muschko)
July 30, 2015, 11:55am
2
Calls to binary repositories are made with HTTPS instead of HTTP. Did you set the proxy setting for HTTPS?
-Dhttps.proxyHost=<host> -Dhttps.proxyPort=<port>
kulksam
(Sameer Kulkarni)
July 30, 2015, 11:59am
3
below is my gradle.properties
systemProp.https.proxyHost=host
systemProp.https.proxyPort=80
systemProp.https.proxyUser=*******
systemProp.https.proxyPassword=******
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost
daz
July 30, 2015, 1:46pm
5
Is that the correct HTTPS port for your proxy? I wouldn’t expect it to be ‘80’.
Try using ‘443’ or removing the port setting to use the default (which should be ‘443’).
Failing that, run your build with --stacktrace
to get the full error message.
donat
(Donát Csikós)
September 9, 2015, 5:43pm
6
You can try the latest Buildship snapshot which has a support for proxy settings. If you set the http/https proxy settings in the Eclipse preferences UI , Buildship and Gradle will automatically make use of it.