Still having an issue with proxy settings, now in 7.4.1. It looks to be getting further since #291 was resolved, but now it is failing with the following:
Execution failed for task ':service:dependencyCheckAnalyze'.
> Cannot cast object 'localhost|127.0.0.1' with class 'java.lang.String' to class 'java.util.List'`
Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'localhost|127.0.0.1|192.168.1.1' with class 'java.lang.String' to class 'java.util.List'
at org.owasp.dependencycheck.gradle.extension.ProxyExtension.setProperty(ProxyExtension.groovy)
at org.owasp.dependencycheck.gradle.tasks.ConfiguredTask.configureProxy(ConfiguredTask.groovy:204)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
It seems it is trying to assign a String to a List<String>:
|
config.proxy.nonProxyHosts = nonProxyHosts |
See target:
|
List<String> nonProxyHosts = [] |
Looking at the history, it was previously fetching the nonProxyHosts differently, which was returning a List<Pattern>:
|
config.proxy.nonProxyHosts = proxyGradle.nonProxyHosts |
Now, It is simply fetching a single String:
|
String nonProxyHosts = System.getProperty("https.nonProxyHosts", System.getProperty("http.nonProxyHosts")) |
Still having an issue with proxy settings, now in 7.4.1. It looks to be getting further since #291 was resolved, but now it is failing with the following:
It seems it is trying to assign a String to a List<String>:
dependency-check-gradle/src/main/groovy/org/owasp/dependencycheck/gradle/tasks/ConfiguredTask.groovy
Line 204 in bfc6eda
See target:
dependency-check-gradle/src/main/groovy/org/owasp/dependencycheck/gradle/extension/ProxyExtension.groovy
Line 30 in bfc6eda
Looking at the history, it was previously fetching the
nonProxyHostsdifferently, which was returning a List<Pattern>:dependency-check-gradle/src/main/groovy/org/owasp/dependencycheck/gradle/tasks/ConfiguredTask.groovy
Line 207 in 2475268
Now, It is simply fetching a single String:
dependency-check-gradle/src/main/groovy/org/owasp/dependencycheck/gradle/tasks/ConfiguredTask.groovy
Line 188 in bfc6eda