Gradle Proxy Enablement ignores no_proxy rules
Describe the bug The changes introduced in #359 while important disable the ability to specify a proxy for resolving external dependencies while publishing to an internal repository. For example you might be pulling from an external repository such as external jcenter() or in my case a non-ivy non-maven source that needs manipulation before it can be added to artifactory
To Reproduce
- Configure jfrog/gradle to use http/https_proxy with no_proxy for internal sites (ive tried both IP's and DNS names)
- Configure a dependency resolution repository that requires a proxy to access
- Perform gradle tasks including dependency resolution via proxy
- Publish Artifacts to internal Artifactory
Expected behavior Gradle/Artifactory plugin to respect no_proxy rules
Versions
- JFrog CLI version: Latest
- JFrog CLI operating system: debian/docker
- Artifactory Version: 6.17.0
Additional context Gradle: 4.10.2
@Enquier, Thanks for reporting this. We should probability add a "bypass http proxy" option when configuring an Artifactory server through the jfrog rt c command. What do you think?
That would be a great/more general way to manage internal vs external rt servers/other repositories. My use case is rather complex in that I am downloading from an external non-artifactory system manipulating (mostly formatting for maven) that artifact slightly and posting it to our internal artifactory. Either way your proposal sounds like it would work for my use-case
I have added a PR with a fix for this. CLA is not available via link anymore
Hi, do you have any update about this issue?
I have similar problem with gradle deployment, it ignores NO_PROXY env (there is no such issue for mvn or npm). Only one workaround which works is to unset HTTP_PROXY env before running jf gradle artifactoryPublish...
jfrog cli version: 2.59.1
@joanna-polec
JFrog CLI version 2.65.0 has been released, and it includes a fix for the no-proxy issue during deployment. Please give it a try and let us know your feedback.
@yahavi It works on version 2.65.0, thanks!