dependency-check-gradle icon indicating copy to clipboard operation
dependency-check-gradle copied to clipboard

DC ignore nonProxyHosts

Open RunFox opened this issue 1 year ago • 2 comments

Version of dependency-check-gradle: 7.1.2 Hello! I try to configure dc-gradle in build.gradle file and specify some host with no proxy like: dependencyCheck{ proxy { nonProxyHosts=['my-host.com'] } } But next I see that DC ignore that options and try to connect to my-host.com through a proxy. What I should to do to work with this option?

RunFox avatar Aug 30 '22 10:08 RunFox

Try changing the list of String to a single string of comma-separated exclusions (just like the system property nonProxyHosts). Gut feel (not a gradle user) is that it will work, as the target property of Settings that the nonProxyHosts config goes into is expecting a comma-separated-hosts-string.

aikebah avatar Sep 03 '22 16:09 aikebah

Try changing the list of String to a single string of comma-separated exclusions (just like the system property nonProxyHosts). Gut feel (not a gradle user) is that it will work, as the target property of Settings that the nonProxyHosts config goes into is expecting a comma-separated-hosts-string.

Hi! Thank yoy for reply I tried use such variant:

nonProxyHost='my-host.com'

But it's does not work, I receive error like this:

Cannot cast object 'my-host.com' with class 'java.lang.String' to class 'java.util.List'

RunFox avatar Sep 29 '22 14:09 RunFox

This will be resolved with https://github.com/dependency-check/dependency-check-gradle/pull/286.

jeremylong avatar Nov 04 '22 09:11 jeremylong