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


The following commit(s) were added to refs/heads/main by this push:
     new 43ee3f78d5 Let jgroups components and tests using quarkus-artemis use 
the same version of jgroups
43ee3f78d5 is described below

commit 43ee3f78d5f28bcbd5f5a4b7c64da7a936b1dc97
Author: Peter Palaga <[email protected]>
AuthorDate: Wed Sep 23 07:57:57 2026 +0200

    Let jgroups components and tests using quarkus-artemis use the same version 
of jgroups
---
 .../core/deployment/JgroupsSupportProcessor.java   | 38 ++++++++++++++++++++++
 pom.xml                                            |  1 +
 poms/bom/pom.xml                                   |  5 +++
 poms/bom/src/main/generated/flattened-full-pom.xml |  5 +++
 .../src/main/generated/flattened-reduced-pom.xml   |  5 +++
 .../generated/flattened-reduced-verbose-pom.xml    |  5 +++
 6 files changed, 59 insertions(+)

diff --git 
a/extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/JgroupsSupportProcessor.java
 
b/extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/JgroupsSupportProcessor.java
new file mode 100644
index 0000000000..1102b3d27f
--- /dev/null
+++ 
b/extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/JgroupsSupportProcessor.java
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.core.deployment;
+
+import io.quarkus.bootstrap.classloading.QuarkusClassLoader;
+import io.quarkus.deployment.annotations.BuildProducer;
+import io.quarkus.deployment.annotations.BuildStep;
+import 
io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem;
+import 
io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;
+
+class JgroupsSupportProcessor {
+
+    @BuildStep
+    void configureJgroups(BuildProducer<RuntimeInitializedClassBuildItem> 
runtimeInitializedClasses,
+            BuildProducer<NativeImageResourceBundleBuildItem> resourceBundles) 
{
+        if 
(QuarkusClassLoader.isClassPresentAtRuntime("org.jgroups.util.Util")) {
+            // The cached local host address must be resolved at runtime.
+            // Workaround for https://redhat.atlassian.net/browse/JGRP-3041
+            runtimeInitializedClasses.produce(new 
RuntimeInitializedClassBuildItem("org.jgroups.util.Util"));
+
+            resourceBundles.produce(new 
NativeImageResourceBundleBuildItem("jg-messages"));
+        }
+    }
+}
diff --git a/pom.xml b/pom.xml
index 84d933e253..7e8c70f7d7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -128,6 +128,7 @@
         <jodatime.version>${jodatime2-version}</jodatime.version><!-- Mess in 
transitive dependencies of Splunk -->
         <javassist.version>${javassist-version}</javassist.version><!-- 
debezium -->
         <jetty.version>${jetty-version}</jetty.version>
+        <jgroups.version>${jgroups-version}</jgroups.version>
         
<jira-rest-client.version>${jira-rest-client-api-version}</jira-rest-client.version>
         <jnr-constants.version>0.9.11</jnr-constants.version><!-- Mess in 
web3j transitive deps -->
         <jnr-ffi.version>2.2.13</jnr-ffi.version><!-- Mess in web3j transitive 
deps -->
diff --git a/poms/bom/pom.xml b/poms/bom/pom.xml
index 6ffe0132d3..475d4f388b 100644
--- a/poms/bom/pom.xml
+++ b/poms/bom/pom.xml
@@ -8410,6 +8410,11 @@
                 <artifactId>javassist</artifactId>
                 <version>${javassist.version}</version>
             </dependency>
+            <dependency>
+                <groupId>org.jgroups</groupId>
+                <artifactId>jgroups</artifactId>
+                <version>${jgroups.version}</version>
+            </dependency>
             <dependency>
                 <groupId>org.jolokia</groupId>
                 <artifactId>jolokia-agent-jvm</artifactId>
diff --git a/poms/bom/src/main/generated/flattened-full-pom.xml 
b/poms/bom/src/main/generated/flattened-full-pom.xml
index 185a8875a3..87d08e1f8e 100644
--- a/poms/bom/src/main/generated/flattened-full-pom.xml
+++ b/poms/bom/src/main/generated/flattened-full-pom.xml
@@ -8292,6 +8292,11 @@
         <artifactId>javassist</artifactId>
         <version>3.32.0-GA</version>
       </dependency>
+      <dependency>
+        <groupId>org.jgroups</groupId>
+        <artifactId>jgroups</artifactId>
+        <version>5.5.6.Final</version>
+      </dependency>
       <dependency>
         <groupId>org.jolokia</groupId>
         <artifactId>jolokia-agent-jvm</artifactId>
diff --git a/poms/bom/src/main/generated/flattened-reduced-pom.xml 
b/poms/bom/src/main/generated/flattened-reduced-pom.xml
index 1c4f2e9526..b6b8dddf52 100644
--- a/poms/bom/src/main/generated/flattened-reduced-pom.xml
+++ b/poms/bom/src/main/generated/flattened-reduced-pom.xml
@@ -9302,6 +9302,11 @@
         <artifactId>javassist</artifactId>
         <version>3.32.0-GA</version>
       </dependency>
+      <dependency>
+        <groupId>org.jgroups</groupId>
+        <artifactId>jgroups</artifactId>
+        <version>5.5.6.Final</version>
+      </dependency>
       <dependency>
         <groupId>org.jolokia</groupId>
         <artifactId>jolokia-agent-jvm</artifactId>
diff --git a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml 
b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
index 7bfe4bea50..6f1bbdb642 100644
--- a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
+++ b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
@@ -9302,6 +9302,11 @@
         <artifactId>javassist</artifactId>
         <version>3.32.0-GA</version>
       </dependency>
+      <dependency>
+        <groupId>org.jgroups</groupId>
+        <artifactId>jgroups</artifactId>
+        <version>5.5.6.Final</version>
+      </dependency>
       <dependency>
         <groupId>org.jolokia</groupId>
         <artifactId>jolokia-agent-jvm</artifactId>

Reply via email to