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

pjfanning pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-connectors.git


The following commit(s) were added to refs/heads/main by this push:
     new 8d508697f googleCloudPubSubGrpc: filter out deprecated grpc classes 
that are not needed (#1855)
8d508697f is described below

commit 8d508697fb84a508510c786490447a5508fab7eb
Author: PJ Fanning <[email protected]>
AuthorDate: Wed Sep 23 08:06:41 2026 +0100

    googleCloudPubSubGrpc: filter out deprecated grpc classes that are not 
needed (#1855)
    
    * filter out deprecated grpc classes that are not needed
    
    * Create grpc-reflection-v1alpha.excludes
---
 build.sbt                                           |  5 ++++-
 .../grpc-reflection-v1alpha.excludes                | 21 +++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/build.sbt b/build.sbt
index be2228d2c..4010367d5 100644
--- a/build.sbt
+++ b/build.sbt
@@ -279,11 +279,14 @@ lazy val googleCloudPubSubGrpc = pekkoConnectorProject(
   Compile / scalacOptions ++= Seq(
     "-Wconf:src=.+/pekko-grpc/main/.+:s",
     "-Wconf:src=.+/pekko-grpc/test/.+:s"),
+  // grpc/reflection/v1alpha/reflection.proto is marked `option deprecated = 
true` upstream and is
+  // superseded by grpc/reflection/v1, which is still generated. Nothing in 
this connector uses either,
+  // they are collateral from unpacking the google-cloud-pubsub protobuf-src 
artifact.
   PB.generate / excludeFilter := {
     val previousFilter = (PB.generate / excludeFilter).value
     new SimpleFileFilter(f =>
       previousFilter.accept(f) ||
-      (Common.isScala3Next.value && f.getAbsolutePath.replace('\\', 
'/').contains("grpc/reflection/v1alpha")))
+      f.getAbsolutePath.replace('\\', '/').contains("grpc/reflection/v1alpha"))
   },
   Compile / pekkoGrpcCodeGeneratorSettings ++= (
     if (Common.isScala3.value) Seq("scala3_sources") else Seq.empty
diff --git 
a/google-cloud-pub-sub-grpc/src/main/mima-filters/2.0.x.backwards.excludes/grpc-reflection-v1alpha.excludes
 
b/google-cloud-pub-sub-grpc/src/main/mima-filters/2.0.x.backwards.excludes/grpc-reflection-v1alpha.excludes
new file mode 100644
index 000000000..3489a3b53
--- /dev/null
+++ 
b/google-cloud-pub-sub-grpc/src/main/mima-filters/2.0.x.backwards.excludes/grpc-reflection-v1alpha.excludes
@@ -0,0 +1,21 @@
+# 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.
+
+# grpc/reflection/v1alpha/reflection.proto is deprecated upstream (option 
deprecated = true) and is
+# no longer code generated; grpc/reflection/v1 remains. These classes were 
only ever collateral from
+# unpacking the google-cloud-pubsub protobuf-src artifact and are not used by 
this connector.
+ProblemFilters.exclude[MissingClassProblem]("io.grpc.reflection.v1alpha.*")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to