Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support running behind a proxy #35

Open
nidi3 opened this issue Mar 9, 2017 · 4 comments
Open

Support running behind a proxy #35

nidi3 opened this issue Mar 9, 2017 · 4 comments

Comments

@nidi3
Copy link

nidi3 commented Mar 9, 2017

Take the proxy settings from the repository configuration

@szpak
Copy link
Member

szpak commented Mar 9, 2017

Could be nice for corporate environments. Did you mean systemProp.https.* properties or something specific in the repository configuration?

@nidi3
Copy link
Author

nidi3 commented Mar 9, 2017

Corporate environment, exactly our problem.
I meant mavenDeployer { repository() { proxy }} as this does not respect systemProp.https.*
But this is just our use case and I don't know gradle good enough to tell if this makes sense for everybody.
In the end, there should be a possibility to configure a proxy, either with or without a sensible default.

@szpak
Copy link
Member

szpak commented Mar 9, 2017

The plugin currently uses HTTPBuilder which seems to require defining proxy settings in a specific way. However, I'm in the middle :-) of migration to OkHttp, so there is a change it would be easier to implement.

@martijndwars
Copy link

I just ran into this as well. I'm in a corporate environment and outgoing traffic needs to go through an HTTP proxy. Most tools pick up HTTP_PROXY/HTTPS_PROXY, Java has its own -DsystemProp.https.*/-DsystemProp.http.*, but none of these work for this library.

Any way I can help with this? Would it be possible to have the HTTP client (RESTClient) pick up Java's systemProp.http(s) or the system environment variables?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants