Search in sources :

Example 1 with NativeImageResourceBundleBuildItem

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());
}
Also used : NativeImageResourceBundleBuildItem(io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem) NativeImageEnableAllCharsetsBuildItem(io.quarkus.deployment.builditem.NativeImageEnableAllCharsetsBuildItem) BuildStep(io.quarkus.deployment.annotations.BuildStep)

Example 2 with NativeImageResourceBundleBuildItem

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"));
}
Also used : JsonbProducer(io.quarkus.jsonb.JsonbProducer) NativeImageResourceBundleBuildItem(io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem) ServiceProviderBuildItem(io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem) AdditionalBeanBuildItem(io.quarkus.arc.deployment.AdditionalBeanBuildItem) IndexView(org.jboss.jandex.IndexView) ReflectiveClassBuildItem(io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem) AnnotationInstance(org.jboss.jandex.AnnotationInstance) BuildStep(io.quarkus.deployment.annotations.BuildStep)

Example 3 with NativeImageResourceBundleBuildItem

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.
}
Also used : NativeImageResourceBundleBuildItem(io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem) BuildStep(io.quarkus.deployment.annotations.BuildStep)

Example 4 with NativeImageResourceBundleBuildItem

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"));
}
Also used : NativeImageResourceBundleBuildItem(io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem) BuildStep(io.quarkus.deployment.annotations.BuildStep)

Example 5 with NativeImageResourceBundleBuildItem

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"));
}
Also used : NativeImageResourceBuildItem(io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem) NativeImageResourceBundleBuildItem(io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem) BuildStep(io.quarkus.deployment.annotations.BuildStep)

Aggregations

BuildStep (io.quarkus.deployment.annotations.BuildStep)14 NativeImageResourceBundleBuildItem (io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem)14 NativeImageResourceBuildItem (io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem)6 ReflectiveClassBuildItem (io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem)5 AnnotationInstance (org.jboss.jandex.AnnotationInstance)4 ServiceProviderBuildItem (io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem)3 ArrayList (java.util.ArrayList)3 HashSet (java.util.HashSet)3 AnnotationTarget (org.jboss.jandex.AnnotationTarget)3 AdditionalBeanBuildItem (io.quarkus.arc.deployment.AdditionalBeanBuildItem)2 Record (io.quarkus.deployment.annotations.Record)2 FeatureBuildItem (io.quarkus.deployment.builditem.FeatureBuildItem)2 RuntimeInitializedClassBuildItem (io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem)2 LinkedHashSet (java.util.LinkedHashSet)2 Change (liquibase.change.Change)2 CreateProcedureChange (liquibase.change.core.CreateProcedureChange)2 CreateViewChange (liquibase.change.core.CreateViewChange)2 LoadDataChange (liquibase.change.core.LoadDataChange)2 SQLFileChange (liquibase.change.core.SQLFileChange)2 ChangeLogParser (liquibase.parser.ChangeLogParser)2