diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 60c673069ea48..8f9f8a21c3d3a 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -6043,6 +6043,20 @@ exe ${protoc.version} + + com.google.protobuf + protoc + linux-ppcle_64 + exe + ${protoc.version} + + + com.google.protobuf + protoc + linux-s390_64 + exe + ${protoc.version} + com.google.protobuf protoc @@ -6060,14 +6074,14 @@ com.google.protobuf protoc - osx-x86_64 + osx-aarch_64 exe ${protoc.version} com.google.protobuf protoc - osx-aarch_64 + osx-x86_64 exe ${protoc.version} @@ -6092,6 +6106,20 @@ linux-aarch_64 ${grpc.version} + + io.grpc + protoc-gen-grpc-java + exe + linux-ppcle_64 + ${grpc.version} + + + io.grpc + protoc-gen-grpc-java + exe + linux-s390_64 + ${grpc.version} + io.grpc protoc-gen-grpc-java @@ -6110,14 +6138,14 @@ io.grpc protoc-gen-grpc-java exe - osx-x86_64 + osx-aarch_64 ${grpc.version} io.grpc protoc-gen-grpc-java exe - osx-aarch_64 + osx-x86_64 ${grpc.version} diff --git a/extensions/grpc/api/src/main/java/io/quarkus/grpc/GrpcClientUtils.java b/extensions/grpc/api/src/main/java/io/quarkus/grpc/GrpcClientUtils.java index 94712c982004e..91ce3ba5030a7 100644 --- a/extensions/grpc/api/src/main/java/io/quarkus/grpc/GrpcClientUtils.java +++ b/extensions/grpc/api/src/main/java/io/quarkus/grpc/GrpcClientUtils.java @@ -29,10 +29,11 @@ public static T attachHeaders(T client, Metadata extraHeaders) { client = getProxiedObject(client); if (client instanceof AbstractStub) { - return (T) MetadataUtils.attachHeaders((AbstractStub) client, extraHeaders); + return (T) ((AbstractStub) client).withInterceptors(MetadataUtils.newAttachHeadersInterceptor(extraHeaders)); } else if (client instanceof MutinyClient) { MutinyClient mutinyClient = (MutinyClient) client; - AbstractStub stub = MetadataUtils.attachHeaders(mutinyClient.getStub(), extraHeaders); + AbstractStub stub = mutinyClient.getStub() + .withInterceptors(MetadataUtils.newAttachHeadersInterceptor(extraHeaders)); return (T) ((MutinyClient) client).newInstanceWithStub(stub); } else { throw new IllegalArgumentException("Unsupported client type " + client.getClass()); diff --git a/extensions/grpc/codegen/pom.xml b/extensions/grpc/codegen/pom.xml index c71fb2d277282..dd111e65d39ea 100644 --- a/extensions/grpc/codegen/pom.xml +++ b/extensions/grpc/codegen/pom.xml @@ -31,6 +31,18 @@ linux-aarch_64 exe + + com.google.protobuf + protoc + linux-ppcle_64 + exe + + + com.google.protobuf + protoc + linux-s390_64 + exe + com.google.protobuf protoc @@ -73,6 +85,18 @@ exe linux-aarch_64 + + io.grpc + protoc-gen-grpc-java + exe + linux-ppcle_64 + + + io.grpc + protoc-gen-grpc-java + exe + linux-s390_64 + io.grpc protoc-gen-grpc-java diff --git a/extensions/grpc/inprocess/pom.xml b/extensions/grpc/inprocess/pom.xml index 66b90262afc2d..0f94775a9ec74 100644 --- a/extensions/grpc/inprocess/pom.xml +++ b/extensions/grpc/inprocess/pom.xml @@ -17,5 +17,27 @@ io.quarkus quarkus-grpc + + io.grpc + grpc-inprocess + + + com.google.code.findbugs + jsr305 + + + org.codehaus.mojo + animal-sniffer-annotations + + + org.checkerframework + checker-qual + + + com.google.android + annotations + + + diff --git a/extensions/grpc/runtime/src/main/java/io/grpc/override/ContextStorageOverride.java b/extensions/grpc/runtime/src/main/java/io/grpc/override/ContextStorageOverride.java index 84de72b532fdd..9fcf25867daee 100644 --- a/extensions/grpc/runtime/src/main/java/io/grpc/override/ContextStorageOverride.java +++ b/extensions/grpc/runtime/src/main/java/io/grpc/override/ContextStorageOverride.java @@ -36,7 +36,7 @@ public void detach(Context context, Context toRestore) { } } else { if (dc != null && VertxContext.isDuplicatedContext(dc)) { - // Do nothing duplicated context are not shared. + // Do nothing - duplicated context are not shared. } else { fallback.set(null); } @@ -59,9 +59,4 @@ public Context current() { return current; } } - - @Override - public void attach(Context toAttach) { - // do nothing, should not be called. - } } diff --git a/pom.xml b/pom.xml index 8a402ede9b2b5..1b211f740e680 100644 --- a/pom.xml +++ b/pom.xml @@ -72,9 +72,9 @@ 6.8.1 - 1.57.2 + 1.59.0 1.2.1 - 3.22.0 + 3.24.4 ${protoc.version} 2.27.0