Running under Milestone 6 gives me the following error -
Caused by: org.gradle.api.internal.MissingMethodException: Could not find method externalDependencis() for arguments [build_7gslcdpg1pe0grk29isjrlf8sc$_run_closure1@315068] on root project 'pgutils'
at org.gradle.api.internal.AbstractDynamicObject.methodMissingException(AbstractDynamicObjet.ava:60)
at org.gradle.api.internal.AbstractDynamicObject.invokeMethod(AbstractDynamicObject.java:56
at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:06)
at org.gradle.api.internal.project.DefaultProject_Decorated.invokeMethod(UnknownSource)
at org.gradle.groovy.scripts.BasicScript.methodMissing(BasicScript.groovy:72)
at build_7gslcdpg1pe0grk29isjrlf8sc.run(D:\B2D_PROJECTSR36\commontech\pgutils\build.gradle
18)
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefautScriptRunnerFactory.java:52)
... 30 more
Milestone-6 does not appear to handle proxy configuration the same way as milestone-5 did. We have projects that are able to connect to mavenCentral() via our proxy as configured in our gradle.properties file(s) when running milestone-5 that are unable to connect with milestone-6.
* Exception is:
org.gradle.api.internal.artifacts.ivyservice.ModuleVersionResolveException: Could not resolve group:bouncycastle, module:bcprov-jdk14, version:140.
[...]
Caused by: java.net.ConnectException: Connection timed out: connect
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.gradle.api.internal.artifacts.repositories.CommonsHttpClientBackedRepository$LazyResourceInvocationHandler.init(CommonsHttpClientBackedRepository.java:186)
at org.gradle.api.internal.artifacts.repositories.CommonsHttpClientBackedRepository$LazyResourceInvocationHandler.invoke(CommonsHttpClientBackedRepository.java:179)
... 84 more
When run with the debug flag, I can see where the org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper class is reporting is setting http.proxyHost and http.proxyPort to the correct values, but the connection nonetheless fails.
I also faced this problem. Going through the company firewall is no issue with milestone-5 but milestone-6 doesn’t work with the proxy config in gradle.properties. I do not use maven central but spring repositories.