Skip to content

Commit 524c29a

Browse files
castlightingZhangJian He
andauthored
build: add grpc dependency to project (openGemini#150)
Signed-off-by: castlighting <[email protected]> Co-authored-by: ZhangJian He <[email protected]>
1 parent 1c87001 commit 524c29a

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

.typos.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2024 openGemini Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
[default.extend-words]
16+
# abbr
17+
"vertx" = "vertx"

opengemini-client/pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,23 @@
5454
<version>${okhttp.version}</version>
5555
<scope>provided</scope>
5656
</dependency>
57+
<dependency>
58+
<groupId>io.grpc</groupId>
59+
<artifactId>grpc-netty</artifactId>
60+
</dependency>
61+
<dependency>
62+
<groupId>io.grpc</groupId>
63+
<artifactId>grpc-stub</artifactId>
64+
</dependency>
65+
<dependency>
66+
<groupId>io.grpc</groupId>
67+
<artifactId>grpc-protobuf</artifactId>
68+
</dependency>
69+
<dependency>
70+
<groupId>io.vertx</groupId>
71+
<artifactId>vertx-grpc</artifactId>
72+
<version>${vertx.version}</version>
73+
</dependency>
5774
</dependencies>
5875

5976
</project>

pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
<annotations.version>13.0</annotations.version>
4343
<async-http-client.version>3.0.0.Beta3</async-http-client.version>
4444
<commons-lang3.version>3.17.0</commons-lang3.version>
45+
<grpc.version>1.61.1</grpc.version>
4546
<http-facade.version>0.2.1</http-facade.version>
4647
<jackson.version>2.17.2</jackson.version>
4748
<junit.version>5.11.1</junit.version>
@@ -52,11 +53,14 @@
5253
<mockito.version>5.13.0</mockito.version>
5354
<okhttp.version>4.12.0</okhttp.version>
5455
<puppycrawl.version>10.18.1</puppycrawl.version>
56+
<protobuf.version>3.25.1</protobuf.version>
57+
<protoc.version>3.25.1</protoc.version>
5558
<reactor-netty.version>1.1.21</reactor-netty.version>
5659
<scala.version>3.4.0</scala.version>
5760
<slf4j.version>2.0.7</slf4j.version>
5861
<spring.version>6.0.19</spring.version>
5962
<spring-boot.version>3.1.11</spring-boot.version>
63+
<vertx.version>4.5.10</vertx.version>
6064
<!-- plugin -->
6165
<central-publishing-maven-plugin.version>0.6.0</central-publishing-maven-plugin.version>
6266
<lombok-maven-plugin.version>1.18.20.0</lombok-maven-plugin.version>
@@ -70,6 +74,8 @@
7074
<maven-release-plugin.version>3.1.1</maven-release-plugin.version>
7175
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
7276
<maven-surefire-plugin.version>3.5.0</maven-surefire-plugin.version>
77+
<maven-os-maven-plugin.version>1.7.1</maven-os-maven-plugin.version>
78+
<maven-protobuf-maven-plugin>0.6.1</maven-protobuf-maven-plugin>
7379
<nexus-staging-plugin.version>1.6.13</nexus-staging-plugin.version>
7480
<scala-maven-plugin.version>4.9.2</scala-maven-plugin.version>
7581
<spotbugs-maven-plugin.version>4.8.6.4</spotbugs-maven-plugin.version>
@@ -95,6 +101,13 @@
95101
<artifactId>jackson-databind</artifactId>
96102
<version>${jackson.version}</version>
97103
</dependency>
104+
<dependency>
105+
<groupId>io.grpc</groupId>
106+
<artifactId>grpc-bom</artifactId>
107+
<version>${grpc.version}</version>
108+
<type>pom</type>
109+
<scope>import</scope>
110+
</dependency>
98111
</dependencies>
99112
</dependencyManagement>
100113

@@ -146,6 +159,13 @@
146159
</dependencies>
147160

148161
<build>
162+
<extensions>
163+
<extension>
164+
<groupId>kr.motd.maven</groupId>
165+
<artifactId>os-maven-plugin</artifactId>
166+
<version>${maven-os-maven-plugin.version}</version>
167+
</extension>
168+
</extensions>
149169
<sourceDirectory>${src.dir}</sourceDirectory>
150170
<plugins>
151171
<plugin>

0 commit comments

Comments
 (0)