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

Add https_proxy and no_proxy configurations to the Maven repository resolution #725

Merged
merged 13 commits into from May 17, 2023

Conversation

Or-Geva
Copy link
Collaborator

@Or-Geva Or-Geva commented Apr 19, 2023

With this PR, HTTP proxy functions will be extended to support HTTPS-proxy and no-proxy domains in the maven repository resolution functions.

  • All tests passed. If this feature is not already covered by the tests, I added new tests.

Related to:

@Or-Geva Or-Geva requested a review from yahavi April 19, 2023 15:49
@Or-Geva Or-Geva temporarily deployed to frogbot April 19, 2023 15:49 — with GitHub Actions Inactive
@Or-Geva Or-Geva added the safe to test Approve running integration tests on a pull request label Apr 19, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Apr 19, 2023
@github-actions
Copy link

What is Frogbot?

Copy link
Member

@yahavi yahavi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider the suggested changes. I'd like to review it again before merging.

Also:

  • Run reformat on all files before submitting a PR
  • I added some coding-style comments that may be applied to other added code locations
  • Avoid using "Boolean" unless it is really needed

Comment on lines 11 to 12
String HTTPS = "https";
String NO_PROXY_DOMAIN = "noProxyDomain";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would that work if we have both HTTP_PROXY and HTTPS_PROXY environment variables in the JFrog CLI?

@Or-Geva Or-Geva requested a review from yahavi April 30, 2023 12:47
@Or-Geva Or-Geva added the safe to test Approve running integration tests on a pull request label Apr 30, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Apr 30, 2023
@Or-Geva Or-Geva added the safe to test Approve running integration tests on a pull request label Apr 30, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Apr 30, 2023
@Or-Geva Or-Geva added the safe to test Approve running integration tests on a pull request label Apr 30, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Apr 30, 2023
@Or-Geva Or-Geva added the safe to test Approve running integration tests on a pull request label May 2, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label May 2, 2023
@yahavi yahavi added the safe to test Approve running integration tests on a pull request label May 8, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label May 8, 2023
proxy.setPort(resolutionHelper.getProxyPort());
proxy.setUserName(resolutionHelper.getProxyUsername());
proxy.setPassword(resolutionHelper.getProxyPassword());
ArtifactoryPluginResolution artifactoryResolution = new ArtifactoryPluginResolution(resolutionHelper.getRepoReleaseUrl(), resolutionHelper.getRepoSnapshotUrl(), resolutionHelper.getRepoUsername(), resolutionHelper.getRepoPassword(), proxySelector, new NullPlexusLog());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Providing a null logger may hide some valuable information. Can we use a regular log or use an adapter to our logger?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RemovedNullPlexusLog() in flavor of resolutionHelper.getLogger()

@Or-Geva Or-Geva temporarily deployed to frogbot May 17, 2023 06:00 — with GitHub Actions Inactive
@Or-Geva Or-Geva added the safe to test Approve running integration tests on a pull request label May 17, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label May 17, 2023
@github-actions
Copy link

What is Frogbot?

@Or-Geva Or-Geva merged commit cce6c37 into jfrog:master May 17, 2023
30 checks passed
@Or-Geva Or-Geva added the new feature Automatically generated release notes label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Automatically generated release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants