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 561132e82548f3dff82c57cc1f3f93d2660d8159 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 | 4 +- poms/bom/src/main/generated/flattened-full-pom.xml | 4 +- 4 files changed, 53 insertions(+), 4 deletions(-) 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 cd03507362..7e02058be2 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/ --> @@ -137,7 +137,7 @@ <kafka.version>4.1.1</kafka.version><!-- @sync io.quarkus:quarkus-bom:${quarkus.version} dep:org.apache.kafka:kafka-clients --> <keycloak.version>26.5.0</keycloak.version><!-- @sync io.quarkus:quarkus-build-parent:${quarkus.version} prop:keycloak.server.version --> <kudu.version>${kudu-version}</kudu.version> - <kotlin.version>2.3.0</kotlin.version><!-- @sync io.quarkus:quarkus-bom:${quarkus.version} dep:org.jetbrains.kotlin:kotlin-stdlib --> + <kotlin.version>2.3.10</kotlin.version><!-- @sync io.quarkus:quarkus-bom:${quarkus.version} dep:org.jetbrains.kotlin:kotlin-stdlib --> <kotlinx.version>1.4.0</kotlinx.version><!--Used by com.squareup.wire:wire-compiler referenced from aws2:kinesis --> <kryo.version>2.24.0</kryo.version><!-- @sync org.apache.flink:flink-core:${flink-version} dep:com.esotericsoftware.kryo:kryo --> <langchain4j.version>1.10.0</langchain4j.version><!-- @sync io.quarkiverse.langchain4j:quarkus-langchain4j-parent:${quarkiverse-langchain4j.version} prop:langchain4j.version --> diff --git a/poms/bom/src/main/generated/flattened-full-pom.xml b/poms/bom/src/main/generated/flattened-full-pom.xml index 393f725560..634dc10f44 100644 --- a/poms/bom/src/main/generated/flattened-full-pom.xml +++ b/poms/bom/src/main/generated/flattened-full-pom.xml @@ -7959,12 +7959,12 @@ <dependency> <groupId>org.jetbrains.kotlin</groupId><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} --> <artifactId>kotlin-scripting-compiler-embeddable</artifactId><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} --> - <version>2.3.0</version><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} --> + <version>2.3.10</version><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} --> </dependency> <dependency> <groupId>org.jetbrains.kotlin</groupId><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} --> <artifactId>kotlin-scripting-compiler-impl-embeddable</artifactId><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} --> - <version>2.3.0</version><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} --> + <version>2.3.10</version><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} --> </dependency> <dependency> <groupId>org.jetbrains.kotlinx</groupId><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
