You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2021/05/26 16:25:01 UTC
[camel-quarkus] 03/04: Fix WatchUpdatesConsumer in native mode
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 491e88b0f31ee8b9be47e6cdc68dc5bee7bfa790
Author: James Netherton <ja...@gmail.com>
AuthorDate: Wed May 26 10:02:25 2021 +0100
Fix WatchUpdatesConsumer in native mode
---
.../camel/quarkus/component/jira/deployment/JiraProcessor.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/extensions/jira/deployment/src/main/java/org/apache/camel/quarkus/component/jira/deployment/JiraProcessor.java b/extensions/jira/deployment/src/main/java/org/apache/camel/quarkus/component/jira/deployment/JiraProcessor.java
index dd964af..0e3556a 100644
--- a/extensions/jira/deployment/src/main/java/org/apache/camel/quarkus/component/jira/deployment/JiraProcessor.java
+++ b/extensions/jira/deployment/src/main/java/org/apache/camel/quarkus/component/jira/deployment/JiraProcessor.java
@@ -19,10 +19,12 @@ package org.apache.camel.quarkus.component.jira.deployment;
import java.util.ArrayList;
import java.util.List;
+import com.atlassian.jira.rest.client.api.domain.Issue;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
+import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import org.joda.time.DateTimeZone;
class JiraProcessor {
@@ -51,4 +53,10 @@ class JiraProcessor {
}
return new NativeImageResourceBuildItem(timezones);
}
+
+ @BuildStep
+ ReflectiveClassBuildItem registerForReflection() {
+ // Required by org.apache.camel.component.jira.consumer.WatchUpdatesConsumer
+ return new ReflectiveClassBuildItem(true, false, Issue.class.getName());
+ }
}