From 356bf552b116e238f420f6921898ce3c0f49bd07 Mon Sep 17 00:00:00 2001 From: Jan Martiska Date: Thu, 11 Jul 2024 15:00:01 +0200 Subject: [PATCH] Initialize graphql.util.IdGenerator at runtime --- .../vertx/graphql/deployment/VertxGraphqlProcessor.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extensions/vertx-graphql/deployment/src/main/java/io/quarkus/vertx/graphql/deployment/VertxGraphqlProcessor.java b/extensions/vertx-graphql/deployment/src/main/java/io/quarkus/vertx/graphql/deployment/VertxGraphqlProcessor.java index 4a33ea01ca16f..98619e8703088 100644 --- a/extensions/vertx-graphql/deployment/src/main/java/io/quarkus/vertx/graphql/deployment/VertxGraphqlProcessor.java +++ b/extensions/vertx-graphql/deployment/src/main/java/io/quarkus/vertx/graphql/deployment/VertxGraphqlProcessor.java @@ -103,4 +103,9 @@ void registerVertxGraphqlUI(VertxGraphqlRecorder recorder, VertxGraphqlConfig co private static boolean doNotIncludeVertxGraphqlUi(LaunchModeBuildItem launchMode, VertxGraphqlConfig config) { return !launchMode.getLaunchMode().isDevOrTest() && !config.ui.alwaysInclude; } + + @BuildStep + void runtimeInitializedClasses(BuildProducer runtimeInitializedClasses) { + runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem("graphql.util.IdGenerator")); + } }