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

FrankChen021 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new b3703432523 build: fix grpc-query build on macOS 27 without Rosetta 
(#20730)
b3703432523 is described below

commit b370343252334018cc943976061f2d0c7817dfee
Author: Frank Chen <[email protected]>
AuthorDate: Tue Oct 27 10:03:28 2026 +0800

    build: fix grpc-query build on macOS 27 without Rosetta (#20730)
    
    The gRPC code generator was hard-coded at 1.52.0, whose osx-aarch_64
    artifact is an x86_64 binary, so building grpc-query failed on macOS 27
    without Rosetta. grpc-java ships a universal binary since 1.76.0.
    
    Add a grpc.version property shared by grpc-bom and protoc-gen-grpc-java,
    moving the code generator to the runtime's 1.84.2. Dependabot can't see
    the version inside the plugin configuration, so sharing the property
    also keeps the two in step.
---
 extensions-contrib/grpc-query/pom.xml | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/extensions-contrib/grpc-query/pom.xml 
b/extensions-contrib/grpc-query/pom.xml
index 57ff554ebda..e9d707f12ca 100644
--- a/extensions-contrib/grpc-query/pom.xml
+++ b/extensions-contrib/grpc-query/pom.xml
@@ -45,12 +45,17 @@
     <relativePath>../../pom.xml</relativePath>
   </parent>
 
+  <properties>
+    <!-- Shared by the grpc-bom import and the protoc-gen-grpc-java code 
generator, so they move together. -->
+    <grpc.version>1.84.2</grpc.version>
+  </properties>
+
   <dependencyManagement>
     <dependencies>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-bom</artifactId>
-        <version>1.84.2</version>
+        <version>${grpc.version}</version>
         <type>pom</type>
         <scope>import</scope>
       </dependency>
@@ -298,7 +303,7 @@
         <configuration>
           
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
           <pluginId>grpc-java</pluginId>
-          
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.52.0:exe:${os.detected.classifier}</pluginArtifact>
+          
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
         </configuration>
         <executions>
           <execution>


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

Reply via email to