-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Unless configured, derive the registry URL from the registry ID #18661
Unless configured, derive the registry URL from the registry ID #18661
Conversation
|
||
private static RegistriesConfig serializeDeserialize(RegistriesConfig config) throws Exception { | ||
final StringWriter buf = new StringWriter(); | ||
try (BufferedWriter writer = new BufferedWriter(buf)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to use BufferedWriter to write to a StringWriter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a habit, I didn't even think about it apparently. Removed.
try (BufferedWriter writer = new BufferedWriter(buf)) { | ||
RegistriesConfigMapperHelper.toYaml(config, writer); | ||
} | ||
try (BufferedReader reader = new BufferedReader(new StringReader(buf.toString()))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to use a BufferedReader
to read from a StringReader
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
745e0ad
to
23a61b4
Compare
This workflow status is outdated as a new workflow run has been triggered. |
This PR removes the fallback to the Sonatype's OSS snapshot repo in case the repo URL has not been configured for now and uses the
https://<registry-id>/maven
as the default registry repository URL.