diff --git a/extensions/jsonp/deployment/src/main/java/io/quarkus/jsonp/deployment/JsonpProcessor.java b/extensions/jsonp/deployment/src/main/java/io/quarkus/jsonp/deployment/JsonpProcessor.java index 8bc6e023862371..e8aec8a40173fd 100644 --- a/extensions/jsonp/deployment/src/main/java/io/quarkus/jsonp/deployment/JsonpProcessor.java +++ b/extensions/jsonp/deployment/src/main/java/io/quarkus/jsonp/deployment/JsonpProcessor.java @@ -1,20 +1,21 @@ package io.quarkus.jsonp.deployment; -import org.eclipse.parsson.JsonProviderImpl; +import jakarta.json.spi.JsonProvider; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; +import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem; public class JsonpProcessor { @BuildStep void build(BuildProducer feature, BuildProducer reflectiveClass, - BuildProducer resourceBundle) { - reflectiveClass.produce( - ReflectiveClassBuildItem.builder(JsonProviderImpl.class.getName()).build()); + BuildProducer serviceProviders) { + + serviceProviders.produce(ServiceProviderBuildItem.allProvidersFromClassPath(JsonProvider.class.getName())); } + }