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

davsclaus pushed a commit to branch camel-4.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.18.x by this push:
     new 0d250ae6de9d CAMEL-23729: downgrade google-cloud-secretmanager to 
2.82.0 (#23917)
0d250ae6de9d is described below

commit 0d250ae6de9d11381633adf1f040b19c7e7b91a5
Author: Marco Carletti <[email protected]>
AuthorDate: Wed Jun 10 17:17:59 2026 +0200

    CAMEL-23729: downgrade google-cloud-secretmanager to 2.82.0 (#23917)
---
 ...ogleSecretManagerProtobufCompatibilityTest.java | 34 ++++++++++++++++++++++
 parent/pom.xml                                     |  2 +-
 2 files changed, 35 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-google/camel-google-secret-manager/src/test/java/org/apache/camel/component/google/secret/manager/unit/GoogleSecretManagerProtobufCompatibilityTest.java
 
b/components/camel-google/camel-google-secret-manager/src/test/java/org/apache/camel/component/google/secret/manager/unit/GoogleSecretManagerProtobufCompatibilityTest.java
new file mode 100644
index 000000000000..51a3e0e5f42f
--- /dev/null
+++ 
b/components/camel-google/camel-google-secret-manager/src/test/java/org/apache/camel/component/google/secret/manager/unit/GoogleSecretManagerProtobufCompatibilityTest.java
@@ -0,0 +1,34 @@
+/*
+ * 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.component.google.secret.manager.unit;
+
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
+
+public class GoogleSecretManagerProtobufCompatibilityTest {
+
+    @Test
+    void protobufVersionCompatibleWithSecretManagerStubs() {
+        // ListSecretsRequest.<clinit> references 
com.google.protobuf.RuntimeVersion$RuntimeDomain
+        // which only exists in protobuf 4.x — if the BOM pins protobuf 3.x 
this will throw
+        // NoClassDefFoundError at class-loading time
+        assertDoesNotThrow(
+                () -> 
Class.forName("com.google.cloud.secretmanager.v1.ListSecretsRequest"),
+                "proto-google-cloud-secretmanager-v1 stubs are incompatible 
with the protobuf version on the classpath");
+    }
+}
diff --git a/parent/pom.xml b/parent/pom.xml
index d42fe72e4762..552924e697bb 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -215,7 +215,7 @@
         
<google-cloud-http-client-version>2.1.0</google-cloud-http-client-version>
         <google-cloud-pubsub-version>1.145.0</google-cloud-pubsub-version>
         
<google-cloud-pubsublite-version>1.16.0</google-cloud-pubsublite-version>
-        
<google-cloud-secretmanager-version>2.84.0</google-cloud-secretmanager-version>
+        
<google-cloud-secretmanager-version>2.82.0</google-cloud-secretmanager-version>
         <google-cloud-storage-version>2.62.1</google-cloud-storage-version>
         
<google-cloud-aiplatform-version>3.85.0</google-cloud-aiplatform-version>
         <google-genai-version>1.38.0</google-genai-version>

Reply via email to