use of io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem in project quarkus by quarkusio.
the class MsSQLProcessor method nativeResources.
@BuildStep
void nativeResources(BuildProducer<NativeImageResourceBundleBuildItem> resources, BuildProducer<NativeImageEnableAllCharsetsBuildItem> nativeEnableAllCharsets) {
resources.produce(new NativeImageResourceBundleBuildItem("com.microsoft.sqlserver.jdbc.SQLServerResource"));
nativeEnableAllCharsets.produce(new NativeImageEnableAllCharsetsBuildItem());
}
use of io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem in project quarkus by quarkusio.
the class JsonbProcessor method build.
@BuildStep
void build(BuildProducer<ReflectiveClassBuildItem> reflectiveClass, BuildProducer<NativeImageResourceBundleBuildItem> resourceBundle, BuildProducer<ServiceProviderBuildItem> serviceProvider, BuildProducer<AdditionalBeanBuildItem> additionalBeans, CombinedIndexBuildItem combinedIndexBuildItem) {
reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, JsonBindingProvider.class.getName()));
resourceBundle.produce(new NativeImageResourceBundleBuildItem("yasson-messages"));
serviceProvider.produce(new ServiceProviderBuildItem(JsonbComponentInstanceCreator.class.getName(), QuarkusJsonbComponentInstanceCreator.class.getName()));
// this needs to be registered manually since the runtime module is not indexed by Jandex
additionalBeans.produce(new AdditionalBeanBuildItem(JsonbProducer.class));
IndexView index = combinedIndexBuildItem.getIndex();
// handle the various @JsonSerialize cases
for (AnnotationInstance serializeInstance : index.getAnnotations(JSONB_TYPE_SERIALIZER)) {
registerInstance(reflectiveClass, serializeInstance);
}
// handle the various @JsonDeserialize cases
for (AnnotationInstance deserializeInstance : index.getAnnotations(JSONB_TYPE_DESERIALIZER)) {
registerInstance(reflectiveClass, deserializeInstance);
}
// register String constructors for reflection as they may not have been properly registered by default
// see https://github.com/quarkusio/quarkus/issues/10873
reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, false, "java.lang.String"));
}
use of io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem in project quarkus by quarkusio.
the class LocaleProcessor method nativeResources.
@BuildStep(onlyIf = { NativeBuild.class, NonDefaultLocale.class })
void nativeResources(BuildProducer<NativeImageResourceBundleBuildItem> resources) {
resources.produce(new NativeImageResourceBundleBuildItem("sun.util.resources.LocaleNames"));
resources.produce(new NativeImageResourceBundleBuildItem("sun.util.resources.CurrencyNames"));
// Adding sun.util.resources.TimeZoneNames is not necessary.
}
use of io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem in project camel-quarkus by apache.
the class MsvProcessor method registerResourceBundles.
@BuildStep
void registerResourceBundles(BuildProducer<NativeImageResourceBundleBuildItem> producer) {
producer.produce(new NativeImageResourceBundleBuildItem("com.sun.msv.verifier.regexp.xmlschema.Messages"));
producer.produce(new NativeImageResourceBundleBuildItem("com.sun.msv.verifier.regexp.Messages"));
producer.produce(new NativeImageResourceBundleBuildItem("com.sun.msv.verifier.identity.Messages"));
producer.produce(new NativeImageResourceBundleBuildItem("com.sun.msv.verifier.Messages"));
producer.produce(new NativeImageResourceBundleBuildItem("com.sun.msv.relaxns.verifier.Messages"));
producer.produce(new NativeImageResourceBundleBuildItem("com.sun.msv.relaxns.grammar.relax.Messages"));
producer.produce(new NativeImageResourceBundleBuildItem("com.sun.msv.reader.xmlschema.Messages"));
producer.produce(new NativeImageResourceBundleBuildItem("com.sun.msv.reader.trex.ng.comp.Messages"));
producer.produce(new NativeImageResourceBundleBuildItem("com.sun.msv.reader.trex.ng.Messages"));
producer.produce(new NativeImageResourceBundleBuildItem("com.sun.msv.reader.trex.Messages"));
producer.produce(new NativeImageResourceBundleBuildItem("com.sun.msv.reader.relax.Messages"));
producer.produce(new NativeImageResourceBundleBuildItem("com.sun.msv.reader.dtd.Messages"));
producer.produce(new NativeImageResourceBundleBuildItem("com.sun.msv.grammar.trex.Messages"));
producer.produce(new NativeImageResourceBundleBuildItem("com.sun.msv.grammar.relaxng.Messages"));
producer.produce(new NativeImageResourceBundleBuildItem("com.sun.msv.driver.textui.Messages"));
}
use of io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem in project myfaces by apache.
the class MyFacesProcessor method substrateResourceBuildItems.
@BuildStep
void substrateResourceBuildItems(BuildProducer<NativeImageResourceBuildItem> nativeImageResourceProducer, BuildProducer<NativeImageResourceBundleBuildItem> resourceBundleBuildItem) {
nativeImageResourceProducer.produce(new NativeImageResourceBuildItem("META-INF/rsc/myfaces-dev-error.xml", "META-INF/rsc/myfaces-dev-debug.xml", "org/apache/myfaces/resource/default.dtd", "org/apache/myfaces/resource/datatypes.dtd", "META-INF/web-fragment.xml", "META-INF/resources/org/apache/myfaces/windowId/windowhandler.html", "org/apache/myfaces/resource/facelet-taglib_1_0.dtd", "org/apache/myfaces/resource/javaee_5.xsd", "org/apache/myfaces/resource/jakartaee_9.xsd", "org/apache/myfaces/resource/jakartaee_10.xsd", "org/apache/myfaces/resource/web-facelettaglibrary_2_0.xsd", "org/apache/myfaces/resource/XMLSchema.dtd", "org/apache/myfaces/resource/facesconfig_1_0.dtd", "org/apache/myfaces/resource/web-facesconfig_1_1.dtd", "org/apache/myfaces/resource/web-facesconfig_1_2.dtd", "org/apache/myfaces/resource/web-facesconfig_2_0.dtd", "org/apache/myfaces/resource/web-facesconfig_2_1.dtd", "org/apache/myfaces/resource/web-facesconfig_2_2.dtd", "org/apache/myfaces/resource/web-facesconfig_2_3.dtd", "org/apache/myfaces/resource/web-facesconfig_3_0.dtd", "org/apache/myfaces/resource/web-facesconfig_4_0.dtd", "org/apache/myfaces/resource/xml.xsd", "META-INF/rsc/myfaces-dev-error-include.xml", "META-INF/services/javax.servlet.ServletContainerInitializer"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_ar"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_ca"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_cs"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_de"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_en"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_es"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_fr"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_it"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_ja"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_mt"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_nl"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_pl"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_pt_PR"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_ru"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_sk"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_zh_CN"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_zh_HK"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("jakarta.faces.Messages_zh_TW"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("javax.el.PrivateMessages"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("javax.servlet.LocalStrings"));
resourceBundleBuildItem.produce(new NativeImageResourceBundleBuildItem("javax.el.LocalStrings"));
}
Aggregations