Cannot resolve dependencies

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 Still no luck.

exception : org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve junit:junit:4.12.

Please help me to resolve the issue.


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>

below is my


Getting above error

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.

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.

Thanks for the reply