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

Unless configured, derive the registry URL from the registry ID #18661

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

aloubyansky
Copy link
Member

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.

@quarkus-bot quarkus-bot bot added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/platform Issues related to definition and interaction with Quarkus Platform labels Jul 13, 2021

private static RegistriesConfig serializeDeserialize(RegistriesConfig config) throws Exception {
final StringWriter buf = new StringWriter();
try (BufferedWriter writer = new BufferedWriter(buf)) {
Copy link
Contributor

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

Copy link
Member Author

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()))) {
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed.

@quarkus-bot
Copy link

quarkus-bot bot commented Jul 13, 2021

This workflow status is outdated as a new workflow run has been triggered.

🚫 This workflow run has been cancelled.

Failing Jobs - Building 745e0ad

⚠️ Artifacts of the workflow run were not available thus the report misses some details.

Status Name Step Test failures Logs Raw logs
Initial JDK 11 Build Build ⚠️ Check → Logs Raw logs

@quarkus-bot
Copy link

quarkus-bot bot commented Jul 14, 2021

Failing Jobs - Building 23a61b4

Status Name Step Test failures Logs Raw logs
Native Tests - Misc4 Build ⚠️ Check → Logs Raw logs

@aloubyansky aloubyansky merged commit 1094f1a into quarkusio:main Jul 14, 2021
@quarkus-bot quarkus-bot bot added this to the 2.1 - main milestone Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/platform Issues related to definition and interaction with Quarkus Platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants