Skip to content

Commit 84b1741

Browse files
committed
TIKA-4379: update grpc, replace deprecated class
1 parent 47cb264 commit 84b1741

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tika-grpc/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</parent>
3535

3636
<properties>
37-
<grpc.version>1.70.0</grpc.version>
37+
<grpc.version>1.71.0</grpc.version>
3838
<asarkar-grpc-test.version>1.2.2</asarkar-grpc-test.version>
3939
<awaitility.version>4.3.0</awaitility.version>
4040
<j2objc-annotations.version>3.0.0</j2objc-annotations.version>

tika-grpc/src/main/java/org/apache/tika/pipes/grpc/TikaGrpcServer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import io.grpc.ServerCredentials;
3232
import io.grpc.TlsServerCredentials;
3333
import io.grpc.protobuf.services.HealthStatusManager;
34-
import io.grpc.protobuf.services.ProtoReflectionService;
34+
import io.grpc.protobuf.services.ProtoReflectionServiceV1;
3535
import org.slf4j.Logger;
3636
import org.slf4j.LoggerFactory;
3737

@@ -101,7 +101,7 @@ public void start() throws Exception {
101101
.newServerBuilderForPort(port, creds)
102102
.addService(new TikaGrpcServerImpl(tikaConfigFile.getAbsolutePath()))
103103
.addService(healthStatusManager.getHealthService())
104-
.addService(ProtoReflectionService.newInstance())
104+
.addService(ProtoReflectionServiceV1.newInstance())
105105
.build()
106106
.start();
107107
LOGGER.info("Server started, listening on " + port);

0 commit comments

Comments
 (0)