11<?xml version =" 1.0" encoding =" UTF-8" ?>
2-
3- < project xmlns = " http://maven.apache.org/POM/4.0.0 " xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2+ < project xmlns = " http://maven.apache.org/POM/4.0.0 "
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
44 xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
55 <modelVersion >4.0.0</modelVersion >
66
77 <groupId >io.opensergo</groupId >
8- <artifactId >opensergo-java</artifactId >
9- <version >0.0.1 </version >
8+ <artifactId >opensergo-java-sdk </artifactId >
9+ <version >0.1.0-SNAPSHOT </version >
1010
1111 <name >OpenSergo SDK for Java</name >
12- <url >http ://opensergo.io</url >
12+ <url >https ://opensergo.io</url >
1313 <description >OpenSergo SDK for Java</description >
1414 <licenses >
1515 <license >
1919 </license >
2020 </licenses >
2121 <scm >
22- <connection >scm:git:git@github.com:opensergo/opensergo-java.git</connection >
23- <developerConnection >scm:git:git@github.com:opensergo/opensergo-java.git</developerConnection >
24- <url >https://github.com/opensergo/opensergo-java</url >
22+ <connection >scm:git:git@github.com:opensergo/opensergo-java-sdk .git</connection >
23+ <developerConnection >scm:git:git@github.com:opensergo/opensergo-java-sdk .git</developerConnection >
24+ <url >https://github.com/opensergo/opensergo-java-sdk </url >
2525 </scm >
2626 <developers >
2727 <developer >
28- <name >luyanbo</name >
29- <email >robert.lyb@alibaba-inc.com</email >
28+ <id >opensergo</id >
29+ <name >OpenSergo Community</name >
30+ <organization >OpenSergo</organization >
31+ <organizationUrl >https://opensergo.io</organizationUrl >
3032 </developer >
3133 </developers >
34+ <organization >
35+ <name >OpenSergo</name >
36+ <url >https://github.com/opensergo</url >
37+ </organization >
38+ <issueManagement >
39+ <system >github</system >
40+ <url >https://github.com/opensergo/opensergo-java-sdk/issues</url >
41+ </issueManagement >
3242
3343 <properties >
34- <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
35- <maven .compiler.source>1.8</maven .compiler.source>
36- <maven .compiler.target>1.8</maven .compiler.target>
44+ <java .source.version>1.8</java .source.version>
45+ <java .target.version>1.8</java .target.version>
46+ <java .encoding>UTF-8</java .encoding>
47+
48+ <protobuf .version>3.10.0</protobuf .version>
49+ <grpc .version>1.42.1</grpc .version>
50+ <slf4j .version>1.7.36</slf4j .version>
3751
38- <maven-source-plugin .version>3.2.1</maven-source-plugin .version>
39- <maven-javadoc-plugin .version>3.1.1</maven-javadoc-plugin .version>
40- <maven-gpg-plugin .version>3.0.1</maven-gpg-plugin .version>
52+ <!-- Test libs -->
53+ <junit .version>4.12</junit .version>
54+ <mockito .version>2.21.0</mockito .version>
55+ <assertj .version>3.12.1</assertj .version>
56+
57+ <maven .compiler.version>3.8.1</maven .compiler.version>
58+ <maven .surefire.version>2.22.1</maven .surefire.version>
59+ <maven .source.version>3.0.1</maven .source.version>
60+ <maven .javadoc.version>3.0.1</maven .javadoc.version>
61+ <maven .deploy.version>2.8.2</maven .deploy.version>
62+ <maven .gpg.version>1.6</maven .gpg.version>
63+ <maven .jacoco.version>0.8.3</maven .jacoco.version>
64+ <maven .jar.version>3.1.0</maven .jar.version>
65+ <maven .pmd.version>3.8</maven .pmd.version>
4166 </properties >
4267
4368 <dependencies >
44- <dependency >
45- <groupId >javax.annotation</groupId >
46- <artifactId >javax.annotation-api</artifactId >
47- <version >1.3.2</version >
48- </dependency >
4969 <dependency >
5070 <groupId >io.grpc</groupId >
51- <artifactId >grpc-stub </artifactId >
52- <version >1.44.1 </version >
71+ <artifactId >grpc-netty </artifactId >
72+ <version >${grpc.version} </version >
5373 </dependency >
5474 <dependency >
5575 <groupId >io.grpc</groupId >
5676 <artifactId >grpc-protobuf</artifactId >
57- <version >1.44.1 </version >
77+ <version >${grpc.version} </version >
5878 </dependency >
5979 <dependency >
60- <groupId >junit</groupId >
61- <artifactId >junit</artifactId >
62- <version >4.13.2</version >
63- <scope >test</scope >
80+ <groupId >io.grpc</groupId >
81+ <artifactId >grpc-stub</artifactId >
82+ <version >${grpc.version} </version >
6483 </dependency >
84+
6585 <dependency >
6686 <groupId >com.google.protobuf</groupId >
67- <artifactId >protobuf-java-util</artifactId >
68- <version >3.19.4</version >
87+ <artifactId >protobuf-java</artifactId >
88+ <version >${protobuf.version} </version >
89+ </dependency >
90+
91+ <dependency >
92+ <groupId >org.slf4j</groupId >
93+ <artifactId >slf4j-api</artifactId >
94+ <version >${slf4j.version} </version >
95+ </dependency >
96+
97+ <!-- test-scope dependencies -->
98+ <dependency >
99+ <groupId >junit</groupId >
100+ <artifactId >junit</artifactId >
69101 <scope >test</scope >
70102 </dependency >
71103 </dependencies >
72104
105+ <dependencyManagement >
106+ <dependencies >
107+ <dependency >
108+ <groupId >junit</groupId >
109+ <artifactId >junit</artifactId >
110+ <version >${junit.version} </version >
111+ <scope >test</scope >
112+ </dependency >
113+ <dependency >
114+ <groupId >org.mockito</groupId >
115+ <artifactId >mockito-core</artifactId >
116+ <version >${mockito.version} </version >
117+ <scope >test</scope >
118+ </dependency >
119+ <dependency >
120+ <groupId >org.assertj</groupId >
121+ <artifactId >assertj-core</artifactId >
122+ <version >${assertj.version} </version >
123+ <scope >test</scope >
124+ </dependency >
125+ </dependencies >
126+ </dependencyManagement >
127+
73128 <build >
129+ <extensions >
130+ <extension >
131+ <groupId >kr.motd.maven</groupId >
132+ <artifactId >os-maven-plugin</artifactId >
133+ <version >1.6.2</version >
134+ </extension >
135+ </extensions >
136+
74137 <plugins >
75138 <plugin >
76139 <groupId >org.apache.maven.plugins</groupId >
77- <artifactId >maven-source-plugin</artifactId >
78- <version >3.2.1</version >
79- <executions >
80- <execution >
81- <id >attach-sources</id >
82- <goals >
83- <goal >jar</goal >
84- </goals >
85- </execution >
86- </executions >
87- </plugin >
88- <plugin >
89- <groupId >org.apache.maven.plugins</groupId >
90- <artifactId >maven-javadoc-plugin</artifactId >
91- <version >3.3.2</version >
92- <executions >
93- <execution >
94- <id >attach-javadocs</id >
95- <goals >
96- <goal >jar</goal >
97- </goals >
98- </execution >
99- </executions >
100- </plugin >
101- <plugin >
102- <groupId >org.apache.maven.plugins</groupId >
103- <artifactId >maven-gpg-plugin</artifactId >
104- <version >3.0.1</version >
105- <executions >
106- <execution >
107- <id >sign-artifacts</id >
108- <phase >verify</phase >
109- <goals >
110- <goal >sign</goal >
111- </goals >
112- </execution >
113- </executions >
140+ <artifactId >maven-compiler-plugin</artifactId >
141+ <version >${maven.compiler.version} </version >
142+ <configuration >
143+ <source >${java.source.version} </source >
144+ <target >${java.target.version} </target >
145+ <encoding >${java.encoding} </encoding >
146+ </configuration >
114147 </plugin >
148+
115149 <plugin >
116- <groupId >org.apache.maven.plugins</groupId >
117- <artifactId >maven-compiler-plugin</artifactId >
150+ <groupId >org.xolstice.maven.plugins</groupId >
151+ <artifactId >protobuf-maven-plugin</artifactId >
152+ <version >0.6.1</version >
153+ <configuration >
154+ <protocArtifact >com.google.protobuf:protoc:${protobuf.version} :exe:${os.detected.classifier}
155+ </protocArtifact >
156+ <pluginId >grpc-java</pluginId >
157+ <pluginArtifact >io.grpc:protoc-gen-grpc-java:${grpc.version} :exe:${os.detected.classifier}
158+ </pluginArtifact >
159+ </configuration >
118160 <executions >
119161 <execution >
120- <id >compile</id >
121- <phase >compile</phase >
122162 <goals >
123163 <goal >compile</goal >
124- </goals >
125- </execution >
126- <execution >
127- <id >testCompile</id >
128- <phase >test-compile</phase >
129- <goals >
130- <goal >testCompile</goal >
164+ <goal >compile-custom</goal >
131165 </goals >
132166 </execution >
133167 </executions >
134- <configuration >
135- <source >8</source >
136- <target >8</target >
137- </configuration >
138168 </plugin >
139169 </plugins >
170+ <pluginManagement >
171+ <plugins >
172+ <plugin >
173+ <groupId >org.apache.maven.plugins</groupId >
174+ <artifactId >maven-surefire-plugin</artifactId >
175+ <version >${maven.surefire.version} </version >
176+ </plugin >
177+ <plugin >
178+ <groupId >org.apache.maven.plugins</groupId >
179+ <artifactId >maven-jar-plugin</artifactId >
180+ <version >${maven.jar.version} </version >
181+ </plugin >
182+ <plugin >
183+ <groupId >org.apache.maven.plugins</groupId >
184+ <artifactId >maven-gpg-plugin</artifactId >
185+ <version >${maven.gpg.version} </version >
186+ </plugin >
187+ </plugins >
188+ </pluginManagement >
140189 </build >
141190
142- <distributionManagement >
143- <snapshotRepository >
144- <id >ossrh</id >
145- <url >https://s01.oss.sonatype.org/content/repositories/snapshots</url >
146- </snapshotRepository >
147- <repository >
148- <id >ossrh</id >
149- <url >https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url >
150- </repository >
151- </distributionManagement >
152- </project >
191+ <profiles >
192+ <profile >
193+ <id >oss</id >
194+ <build >
195+ <plugins >
196+ <!-- Source -->
197+ <plugin >
198+ <groupId >org.apache.maven.plugins</groupId >
199+ <artifactId >maven-source-plugin</artifactId >
200+ <version >${maven.source.version} </version >
201+ <executions >
202+ <execution >
203+ <phase >package</phase >
204+ <goals >
205+ <goal >jar-no-fork</goal >
206+ </goals >
207+ </execution >
208+ </executions >
209+ </plugin >
210+ <!-- Javadoc -->
211+ <plugin >
212+ <groupId >org.apache.maven.plugins</groupId >
213+ <artifactId >maven-javadoc-plugin</artifactId >
214+ <version >${maven.javadoc.version} </version >
215+ <executions >
216+ <execution >
217+ <phase >package</phase >
218+ <goals >
219+ <goal >jar</goal >
220+ </goals >
221+ <configuration >
222+ <locale >en_US</locale >
223+ <encoding >UTF-8</encoding >
224+ <charset >UTF-8</charset >
225+ <doclint >none</doclint >
226+ </configuration >
227+ </execution >
228+ </executions >
229+ </plugin >
230+ <!-- GPG -->
231+ <plugin >
232+ <groupId >org.apache.maven.plugins</groupId >
233+ <artifactId >maven-gpg-plugin</artifactId >
234+ <version >${maven.gpg.version} </version >
235+ <executions >
236+ <execution >
237+ <phase >verify</phase >
238+ <goals >
239+ <goal >sign</goal >
240+ </goals >
241+ </execution >
242+ </executions >
243+ </plugin >
244+ </plugins >
245+ </build >
246+ <distributionManagement >
247+ <snapshotRepository >
248+ <id >oss</id >
249+ <url >https://oss.sonatype.org/content/repositories/snapshots/</url >
250+ </snapshotRepository >
251+ <repository >
252+ <id >oss</id >
253+ <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
254+ </repository >
255+ </distributionManagement >
256+ </profile >
257+ </profiles >
258+
259+ </project >
0 commit comments