This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch quarkus-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 8623451590c127ed81051f31d3eba157cbec8abd
Author: James Netherton <[email protected]>
AuthorDate: Thu Jan 29 08:20:51 2026 +0000

    Upgrade Quarkus to 3.32.0.CR1
---
 extensions/infinispan/runtime/pom.xml              |  5 +++
 ...EmbeddingsDataTypeTransformerSubstitutions.java | 44 ++++++++++++++++++++++
 pom.xml                                            |  2 +-
 3 files changed, 50 insertions(+), 1 deletion(-)

diff --git a/extensions/infinispan/runtime/pom.xml 
b/extensions/infinispan/runtime/pom.xml
index 0b313fc9dd..f726983a18 100644
--- a/extensions/infinispan/runtime/pom.xml
+++ b/extensions/infinispan/runtime/pom.xml
@@ -50,6 +50,11 @@
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-infinispan</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.graalvm.sdk</groupId>
+            <artifactId>nativeimage</artifactId>
+            <scope>provided</scope>
+        </dependency>
     </dependencies>
 
     <build>
diff --git 
a/extensions/infinispan/runtime/src/main/java/org/apache/camel/quarkus/component/infinispan/graal/InfinispanEmbeddingsDataTypeTransformerSubstitutions.java
 
b/extensions/infinispan/runtime/src/main/java/org/apache/camel/quarkus/component/infinispan/graal/InfinispanEmbeddingsDataTypeTransformerSubstitutions.java
new file mode 100644
index 0000000000..2aa9f257a3
--- /dev/null
+++ 
b/extensions/infinispan/runtime/src/main/java/org/apache/camel/quarkus/component/infinispan/graal/InfinispanEmbeddingsDataTypeTransformerSubstitutions.java
@@ -0,0 +1,44 @@
+/*
+ * 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.component.infinispan.graal;
+
+import java.util.function.BooleanSupplier;
+
+import com.oracle.svm.core.annotate.Delete;
+import com.oracle.svm.core.annotate.TargetClass;
+import 
org.apache.camel.component.infinispan.remote.transform.InfinispanEmbeddingsDataTypeTransformer;
+
+public final class InfinispanEmbeddingsDataTypeTransformerSubstitutions {
+}
+
+// Delete InfinispanEmbeddingsDataTypeTransformer if langchain4j-embeddings is 
not on the classpath
+@TargetClass(value = InfinispanEmbeddingsDataTypeTransformer.class, onlyWith = 
LangChain4jEmbeddingsAbsent.class)
+@Delete
+final class DeleteInfinispanEmbeddingsDataTypeTransformer {
+}
+
+final class LangChain4jEmbeddingsAbsent implements BooleanSupplier {
+    @Override
+    public boolean getAsBoolean() {
+        try {
+            
Thread.currentThread().getContextClassLoader().loadClass("dev.langchain4j.data.embedding.Embedding");
+            return false;
+        } catch (ClassNotFoundException e) {
+            return true;
+        }
+    }
+}
diff --git a/pom.xml b/pom.xml
index eb56a53475..5a2f8afeee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -63,7 +63,7 @@
         <quarkiverse-minio.version>3.8.6</quarkiverse-minio.version><!-- 
https://repo1.maven.org/maven2/io/quarkiverse/minio/quarkus-minio-parent/ -->
         <quarkiverse-mybatis.version>2.4.2</quarkiverse-mybatis.version><!-- 
https://repo1.maven.org/maven2/io/quarkiverse/mybatis/quarkus-mybatis-parent/ 
-->
         
<quarkiverse-pooled-jms.version>2.10.0</quarkiverse-pooled-jms.version><!-- 
https://repo1.maven.org/maven2/io/quarkiverse/messaginghub/quarkus-pooled-jms-parent/
 -->
-        <quarkus.version>3.31.1</quarkus.version><!-- 
https://repo1.maven.org/maven2/io/quarkus/quarkus-bom/ -->
+        <quarkus.version>999-SNAPSHOT</quarkus.version><!-- 
https://repo1.maven.org/maven2/io/quarkus/quarkus-bom/ -->
         
<quarkus-hazelcast-client.version>4.1.0</quarkus-hazelcast-client.version><!-- 
https://repo1.maven.org/maven2/com/hazelcast/quarkus-hazelcast-client-bom/ -->
         <quarkus-qpid-jms.version>2.10.0</quarkus-qpid-jms.version><!-- This 
should be in sync with quarkus-platform 
https://repo1.maven.org/maven2/org/amqphub/quarkus/quarkus-qpid-jms-bom/ -->
 

Reply via email to