This is an automated email from the ASF dual-hosted git repository.
tilman pushed a commit to branch branch_3x
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/branch_3x by this push:
new 84b1741e3 TIKA-4379: update grpc, replace deprecated class
84b1741e3 is described below
commit 84b1741e33c643654236f1aff80b6dcca675bd4b
Author: Tilman Hausherr <[email protected]>
AuthorDate: Sat Mar 8 09:36:58 2025 +0100
TIKA-4379: update grpc, replace deprecated class
---
tika-grpc/pom.xml | 2 +-
.../src/main/java/org/apache/tika/pipes/grpc/TikaGrpcServer.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tika-grpc/pom.xml b/tika-grpc/pom.xml
index 34a120684..3bcbbf92c 100644
--- a/tika-grpc/pom.xml
+++ b/tika-grpc/pom.xml
@@ -34,7 +34,7 @@
</parent>
<properties>
- <grpc.version>1.70.0</grpc.version>
+ <grpc.version>1.71.0</grpc.version>
<asarkar-grpc-test.version>1.2.2</asarkar-grpc-test.version>
<awaitility.version>4.3.0</awaitility.version>
<j2objc-annotations.version>3.0.0</j2objc-annotations.version>
diff --git
a/tika-grpc/src/main/java/org/apache/tika/pipes/grpc/TikaGrpcServer.java
b/tika-grpc/src/main/java/org/apache/tika/pipes/grpc/TikaGrpcServer.java
index 506522c74..c9be5fb33 100644
--- a/tika-grpc/src/main/java/org/apache/tika/pipes/grpc/TikaGrpcServer.java
+++ b/tika-grpc/src/main/java/org/apache/tika/pipes/grpc/TikaGrpcServer.java
@@ -31,7 +31,7 @@ import io.grpc.Server;
import io.grpc.ServerCredentials;
import io.grpc.TlsServerCredentials;
import io.grpc.protobuf.services.HealthStatusManager;
-import io.grpc.protobuf.services.ProtoReflectionService;
+import io.grpc.protobuf.services.ProtoReflectionServiceV1;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -101,7 +101,7 @@ public class TikaGrpcServer {
.newServerBuilderForPort(port, creds)
.addService(new
TikaGrpcServerImpl(tikaConfigFile.getAbsolutePath()))
.addService(healthStatusManager.getHealthService())
- .addService(ProtoReflectionService.newInstance())
+ .addService(ProtoReflectionServiceV1.newInstance())
.build()
.start();
LOGGER.info("Server started, listening on " + port);