xchange: explicitly register the CurrencyNames bundle at build time
@@ -30,6 +30,7 @@ import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.IndexDependencyBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageProxyDefinitionBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
+import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;
import io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem;
@@ -136,4 +137,9 @@ class XchangeProcessor {
.forEach(runtimeInitializedClasses::produce);
}
+ @BuildStep
+ void registerResourceBundles(BuildProducer<NativeImageResourceBundleBuildItem> producer) {
+ producer.produce(new NativeImageResourceBundleBuildItem("sun.util.resources.CurrencyNames"));
+ }
+
}
