Skip to content

Commit

Permalink
Initialize graphql-java's IdGenerator at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartisk committed Jun 3, 2024
1 parent 10d21a1 commit ec46a7f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassConditionBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveHierarchyBuildItem;
import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem;
import io.quarkus.deployment.metrics.MetricsCapabilityBuildItem;
import io.quarkus.maven.dependency.GACT;
Expand Down Expand Up @@ -241,6 +242,11 @@ void registerNativeResourceBundle(BuildProducer<NativeImageResourceBundleBuildIt
nativeResourceBundleProvider.produce(new NativeImageResourceBundleBuildItem("i18n.Parsing"));
}

@BuildStep
void runtimeInitializedClasses(BuildProducer<RuntimeInitializedClassBuildItem> runtimeInitializedClasses) {
runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem("graphql.util.IdGenerator"));
}

@BuildStep
SmallRyeGraphQLModifiedClasesBuildItem createIndex(TransformedClassesBuildItem transformedClassesBuildItem) {
Map<String, byte[]> modifiedClasses = new HashMap<>();
Expand Down

0 comments on commit ec46a7f

Please sign in to comment.