Skip to content

erath-rise/grpc-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This grpc-example for mac (M1/M2) using the Java language.

 For Maven with non-Android, add to your pom.xml:

   <dependencies>
       <dependency>
           <groupId>io.grpc</groupId>
           <artifactId>grpc-netty-shaded</artifactId>
           <version>1.62.2</version>
           <scope>runtime</scope>
       </dependency>
       <dependency>
           <groupId>io.grpc</groupId>
           <artifactId>grpc-protobuf</artifactId>
           <version>1.62.2</version>
       </dependency>
       <dependency>
           <groupId>io.grpc</groupId>
           <artifactId>grpc-stub</artifactId>
           <version>1.62.2</version>
       </dependency>
       <dependency> <!-- necessary for Java 9+ -->
           <groupId>org.apache.tomcat</groupId>
           <artifactId>annotations-api</artifactId>
           <version>6.0.53</version>
           <scope>provided</scope>
       </dependency>
   </dependencies>

<build>
 <extensions>
   <extension>
     <groupId>kr.motd.maven</groupId>
     <artifactId>os-maven-plugin</artifactId>
     <version>1.7.1</version>
   </extension>
 </extensions>
 <plugins>
   <plugin>
     <groupId>org.xolstice.maven.plugins</groupId>
     <artifactId>protobuf-maven-plugin</artifactId>
     <version>0.6.1</version>
     <configuration>
       <protocArtifact>com.google.protobuf:protoc:3.25.1:exe:${os.detected.classifier}</protocArtifact>
       <pluginId>grpc-java</pluginId>
       <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.62.2:exe:${os.detected.classifier}</pluginArtifact>
     </configuration>
     <executions>
       <execution>
         <goals>
           <goal>compile</goal>
           <goal>compile-custom</goal>
         </goals>
       </execution>
     </executions>
   </plugin>
 </plugins>
</build>

And then 'reimport'

About

grpc-example for mac (M1/M2)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages