diff --git a/.all-contributorsrc b/.all-contributorsrc
index 90fdc275..2b85d231 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -196,6 +196,15 @@
"contributions": [
"code"
]
+ },
+ {
+ "login": "wabrit",
+ "name": "wabrit",
+ "avatar_url": "https://avatars.githubusercontent.com/u/4264910?v=4",
+ "profile": "https://github.com/wabrit",
+ "contributions": [
+ "code"
+ ]
}
],
"contributorsPerLine": 7,
diff --git a/README.md b/README.md
index 0b147813..40fd1e22 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Quarkiverse - Quarkus Google Cloud Services
-[![All Contributors](https://img.shields.io/badge/all_contributors-21-orange.svg?style=flat-square)](#contributors-)
+[![All Contributors](https://img.shields.io/badge/all_contributors-22-orange.svg?style=flat-square)](#contributors-)
[![version](https://img.shields.io/maven-central/v/io.quarkiverse.googlecloudservices/quarkus-google-cloud-services-bom)](https://repo1.maven.org/maven2/io/quarkiverse/googlecloudservices/)
[![Build](https://github.com/quarkiverse/quarkus-google-cloud-services/workflows/Build/badge.svg)](https://github.com/quarkiverse/quarkus-google-cloud-services/actions?query=workflow%3ABuild)
@@ -69,6 +69,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
Robert Stupp 💻 |
Hemantkumar Chigadani 💻 |
+
+ wabrit 💻 |
+
diff --git a/logging/deployment/src/main/java/io/quarkiverse/googlecloudservices/logging/deployment/LoggingBuildSteps.java b/logging/deployment/src/main/java/io/quarkiverse/googlecloudservices/logging/deployment/LoggingBuildSteps.java
index 5d5cba34..29b27140 100644
--- a/logging/deployment/src/main/java/io/quarkiverse/googlecloudservices/logging/deployment/LoggingBuildSteps.java
+++ b/logging/deployment/src/main/java/io/quarkiverse/googlecloudservices/logging/deployment/LoggingBuildSteps.java
@@ -1,5 +1,8 @@
package io.quarkiverse.googlecloudservices.logging.deployment;
+import java.util.ArrayList;
+import java.util.List;
+
import io.quarkiverse.googlecloudservices.logging.runtime.LoggingConfiguration;
import io.quarkiverse.googlecloudservices.logging.runtime.TraceInfoExtractor;
import io.quarkiverse.googlecloudservices.logging.runtime.cdi.LoggingProducer;
@@ -11,6 +14,7 @@
import io.quarkus.deployment.annotations.Record;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.LogHandlerBuildItem;
+import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
public class LoggingBuildSteps {
@@ -38,4 +42,14 @@ public UnremovableBeanBuildItem helperClasses() {
public LogHandlerBuildItem handler(LoggingConfiguration config, LoggingHandlerFactory factory) {
return new LogHandlerBuildItem(factory.create(config));
}
+
+ @BuildStep
+ public List registerReflectiveClasses() {
+ List items = new ArrayList<>();
+ // Required for native builds as LoggingHandler uses Gson to serialize severity values
+ items.add(ReflectiveClassBuildItem.builder("com.google.cloud.logging.Severity")
+ .fields(true)
+ .build());
+ return items;
+ }
}