From 3193d7c2ac0cb1d26fb151319841a5c176b59509 Mon Sep 17 00:00:00 2001 From: Andy Damevin Date: Wed, 22 Sep 2021 13:13:49 +0200 Subject: [PATCH 1/2] Make extension-metadata enum parsing resilient to new values --- .../quarkus/platform/catalog/processor/MetadataValue.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/independent-projects/tools/devtools-common/src/main/java/io/quarkus/platform/catalog/processor/MetadataValue.java b/independent-projects/tools/devtools-common/src/main/java/io/quarkus/platform/catalog/processor/MetadataValue.java index 8a0f53208f78c..0906bd9e943b7 100644 --- a/independent-projects/tools/devtools-common/src/main/java/io/quarkus/platform/catalog/processor/MetadataValue.java +++ b/independent-projects/tools/devtools-common/src/main/java/io/quarkus/platform/catalog/processor/MetadataValue.java @@ -72,7 +72,11 @@ public > T toEnum(Class clazz, T defaultValue) { if (name == null) { return defaultValue; } - return T.valueOf(clazz, name.toUpperCase(Locale.ROOT).replace('-', '_')); + try { + return T.valueOf(clazz, name.toUpperCase(Locale.ROOT).replace('-', '_')); + } catch (IllegalArgumentException e) { + return defaultValue; + } } } From 8b1e0fce7aa5b556fbeabbfafaf8c6700c39084d Mon Sep 17 00:00:00 2001 From: Andy Damevin Date: Wed, 22 Sep 2021 13:14:57 +0200 Subject: [PATCH 2/2] Use 'core' as a workaround to avoid showing the 'code' tag --- .../src/main/resources/META-INF/quarkus-extension.yaml | 8 ++++++++ .../src/main/resources/META-INF/quarkus-extension.yaml | 1 + .../src/main/resources/META-INF/quarkus-extension.yaml | 1 + .../src/main/resources/META-INF/quarkus-extension.yaml | 1 + .../src/main/resources/META-INF/quarkus-extension.yaml | 1 + .../src/main/resources/META-INF/quarkus-extension.yaml | 1 + .../src/main/resources/META-INF/quarkus-extension.yaml | 1 + .../src/main/resources/META-INF/quarkus-extension.yaml | 1 + 8 files changed, 15 insertions(+) diff --git a/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/resources/META-INF/quarkus-extension.yaml index 4c90724048e52..e3078ca55b305 100644 --- a/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/resources/META-INF/quarkus-extension.yaml +++ b/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/resources/META-INF/quarkus-extension.yaml @@ -10,3 +10,11 @@ metadata: categories: - "web" status: "stable" + codestart: + name: "resteasy-reactive" + kind: "core" + languages: + - "java" + - "kotlin" + - "scala" + artifact: "io.quarkus:quarkus-project-core-extension-codestarts" diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/resources/META-INF/quarkus-extension.yaml index 7fb7d6d3585b2..5f3780bf987c2 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/resources/META-INF/quarkus-extension.yaml +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/resources/META-INF/quarkus-extension.yaml @@ -17,6 +17,7 @@ metadata: status: "stable" codestart: name: "resteasy-reactive" + kind: "core" languages: - "java" - "kotlin" diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/runtime/src/main/resources/META-INF/quarkus-extension.yaml index 5308f3a0ef192..a60d3727b3fc3 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/runtime/src/main/resources/META-INF/quarkus-extension.yaml +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/runtime/src/main/resources/META-INF/quarkus-extension.yaml @@ -16,6 +16,7 @@ metadata: status: "stable" codestart: name: "resteasy-reactive" + kind: "core" languages: - "java" - "kotlin" diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/resources/META-INF/quarkus-extension.yaml index 65be917a6117f..92b6f8b7e9e5c 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/resources/META-INF/quarkus-extension.yaml +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/resources/META-INF/quarkus-extension.yaml @@ -12,6 +12,7 @@ metadata: status: "stable" codestart: name: "resteasy-reactive" + kind: "core" languages: - "java" - "kotlin" diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/runtime/src/main/resources/META-INF/quarkus-extension.yaml index 1d9ac9a75c4e2..2b7907bf46cba 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/runtime/src/main/resources/META-INF/quarkus-extension.yaml +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/runtime/src/main/resources/META-INF/quarkus-extension.yaml @@ -11,6 +11,7 @@ metadata: status: "stable" codestart: name: "resteasy-reactive" + kind: "core" languages: - "java" - "kotlin" diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/resources/META-INF/quarkus-extension.yaml index 1d96b78f2d584..2ae1e009d2395 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/resources/META-INF/quarkus-extension.yaml +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/resources/META-INF/quarkus-extension.yaml @@ -13,6 +13,7 @@ metadata: status: "experimental" codestart: name: "resteasy-reactive" + kind: "core" languages: - "java" - "kotlin" diff --git a/extensions/resteasy-reactive/rest-client-reactive-jackson/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/resteasy-reactive/rest-client-reactive-jackson/runtime/src/main/resources/META-INF/quarkus-extension.yaml index be0374d21e6d1..47209ef2eadb9 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-jackson/runtime/src/main/resources/META-INF/quarkus-extension.yaml +++ b/extensions/resteasy-reactive/rest-client-reactive-jackson/runtime/src/main/resources/META-INF/quarkus-extension.yaml @@ -16,6 +16,7 @@ metadata: status: "stable" codestart: name: "resteasy-reactive" + kind: "core" languages: - "java" - "kotlin" diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/resources/META-INF/quarkus-extension.yaml index d7060705d43c6..3a8d2f0bf076b 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/resources/META-INF/quarkus-extension.yaml +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/resources/META-INF/quarkus-extension.yaml @@ -11,6 +11,7 @@ metadata: status: "stable" codestart: name: "resteasy-reactive" + kind: "core" languages: - "java" - "kotlin"