Gradle Wrapper and nonProxyHosts

Hi,

I wonder if anyone can help on this - it’s not a critical issue, but we’re having to workaround this issue and it’s just a little untidy. We’re using gradle wrapper (3.3) with a project and we’ve just been moved to a Jenkins server behind a proxy. With all our other java bits setting:

JAVA_OPTS="-Dhttps.proxyHost=proxy.domain -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts=localhost|example.com|test.com"

Works fine, however with gradle wrapper we’re having to escape the pipes, eg:

JAVA_OPTS="-Dhttps.proxyHost=proxy.domain -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts=localhost|example.com|test.com"

That then breaks other java apps (which ignore the nonProxyHosts directive).

Does anyone know a neat way around not having to change the environment variables specifically for the stages using gradle?

Thanks,

James