From bda2e56d89b95ca978ad0144468351684259912a Mon Sep 17 00:00:00 2001 From: Gytis Trikleris Date: Thu, 6 Aug 2020 12:38:55 +0300 Subject: [PATCH] Fail build with HAL resource without serializer #11246 --- .../src/main/java/io/quarkus/deployment/Capability.java | 2 ++ .../rest/data/panache/deployment/RestDataProcessor.java | 8 ++++++++ .../jackson/deployment/ResteasyJacksonProcessor.java | 1 + .../resteasy/jsonb/deployment/ResteasyJsonbProcessor.java | 1 + 4 files changed, 12 insertions(+) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/Capability.java b/core/deployment/src/main/java/io/quarkus/deployment/Capability.java index 59427926d868c..c127fe43503a1 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/Capability.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/Capability.java @@ -30,6 +30,8 @@ public enum Capability { RESTEASY_JSON, RESTEASY_MUTINY, RESTEASY_REACTIVE, + RESTEASY_JACKSON, + RESTEASY_JSONB, JWT, TIKA, MONGODB_PANACHE, diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/RestDataProcessor.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/RestDataProcessor.java index 0e3574c7b8080..a1db6f02074b9 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/RestDataProcessor.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/RestDataProcessor.java @@ -43,6 +43,10 @@ void implementResources(CombinedIndexBuildItem index, List feature) { void capabilities(BuildProducer capability) { capability.produce(new CapabilityBuildItem(Capability.RESTEASY_JSON)); capability.produce(new CapabilityBuildItem(Capability.REST_JACKSON)); + capability.produce(new CapabilityBuildItem(Capability.RESTEASY_JACKSON)); } } diff --git a/extensions/resteasy-jsonb/deployment/src/main/java/io/quarkus/resteasy/jsonb/deployment/ResteasyJsonbProcessor.java b/extensions/resteasy-jsonb/deployment/src/main/java/io/quarkus/resteasy/jsonb/deployment/ResteasyJsonbProcessor.java index abba89a154824..1c71bc74a04de 100755 --- a/extensions/resteasy-jsonb/deployment/src/main/java/io/quarkus/resteasy/jsonb/deployment/ResteasyJsonbProcessor.java +++ b/extensions/resteasy-jsonb/deployment/src/main/java/io/quarkus/resteasy/jsonb/deployment/ResteasyJsonbProcessor.java @@ -32,6 +32,7 @@ void feature(BuildProducer feature) { void capabilities(BuildProducer capability) { capability.produce(new CapabilityBuildItem(Capability.RESTEASY_JSON)); capability.produce(new CapabilityBuildItem(Capability.REST_JSONB)); + capability.produce(new CapabilityBuildItem(Capability.RESTEASY_JSONB)); } @BuildStep