Skip to content

Commit 4e27686

Browse files
authored
Merge pull request #521 from Assassinxc/add-protoc-support-for-macos-aarch64
Bump protoc plugin and grpc-starter to latest version for macos aarch64
2 parents ea93f01 + d1a2b7b commit 4e27686

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

dependencies/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<apache-dubbo.version>3.0.7</apache-dubbo.version>
3636
<alibaba-dubbo.version>2.6.0</alibaba-dubbo.version>
3737
<alibaba-dubbo-starter.version>2.0.0</alibaba-dubbo-starter.version>
38-
<grpc-starter.version>2.13.1.RELEASE</grpc-starter.version>
38+
<grpc-starter.version>2.15.0.RELEASE</grpc-starter.version>
3939
<hystrix.version>1.5.18</hystrix.version>
4040
<motan.version>1.2.0</motan.version>
4141
<okhttp.version>3.14.9</okhttp.version>
@@ -106,7 +106,7 @@
106106

107107
<dependency>
108108
<groupId>net.devh</groupId>
109-
<artifactId>grpc-server-spring-boot-starter</artifactId>
109+
<artifactId>grpc-spring-boot-starter</artifactId>
110110
<version>${grpc-starter.version}</version>
111111
</dependency>
112112

example/example-adapter/example-adapter-grpc/pom.xml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
<dependency>
4747
<groupId>net.devh</groupId>
4848
<artifactId>grpc-spring-boot-starter</artifactId>
49-
<version>2.13.1.RELEASE</version>
5049
</dependency>
5150

5251
<dependency>
@@ -57,6 +56,12 @@
5756
<dependency>
5857
<groupId>com.alibaba.cloud</groupId>
5958
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
59+
<exclusions>
60+
<exclusion>
61+
<groupId>com.google.protobuf</groupId>
62+
<artifactId>protobuf-java</artifactId>
63+
</exclusion>
64+
</exclusions>
6065
</dependency>
6166

6267
<dependency>
@@ -70,18 +75,18 @@
7075
<extension>
7176
<groupId>kr.motd.maven</groupId>
7277
<artifactId>os-maven-plugin</artifactId>
73-
<version>1.4.1.Final</version>
78+
<version>1.7.1</version>
7479
</extension>
7580
</extensions>
7681
<plugins>
7782
<plugin>
7883
<groupId>org.xolstice.maven.plugins</groupId>
7984
<artifactId>protobuf-maven-plugin</artifactId>
80-
<version>0.5.0</version>
85+
<version>0.6.1</version>
8186
<configuration>
82-
<protocArtifact>com.google.protobuf:protoc:3.0.0:exe:${os.detected.classifier}</protocArtifact>
87+
<protocArtifact>com.google.protobuf:protoc:3.18.2:exe:${os.detected.classifier}</protocArtifact>
8388
<pluginId>grpc-java</pluginId>
84-
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.0.0:exe:${os.detected.classifier}</pluginArtifact>
89+
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.69.1:exe:${os.detected.classifier}</pluginArtifact>
8590
</configuration>
8691
<executions>
8792
<execution>

example/example-adapter/example-adapter-grpc/src/main/java/org/dromara/dynamictp/example/GrpcExampleApplication.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
import org.dromara.dynamictp.spring.annotation.EnableDynamicTp;
2121
import org.springframework.boot.SpringApplication;
2222
import org.springframework.boot.autoconfigure.SpringBootApplication;
23+
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
2324

2425
/**
2526
* @author fabian4
2627
*/
2728
@EnableDynamicTp
28-
@SpringBootApplication
29+
@SpringBootApplication(exclude = RedisAutoConfiguration.class)
2930
public class GrpcExampleApplication {
3031
public static void main(String[] args) {
3132
SpringApplication.run(GrpcExampleApplication.class, args);

0 commit comments

Comments
 (0)