Skip to content

Commit f44af06

Browse files
committed
[feat] init shenyu java client
1 parent 2cd5348 commit f44af06

File tree

183 files changed

+21907
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+21907
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# shenyu-client-java
1+
# shenyu-client-java
2+
3+
support jdk 1.8+ and spring boot 2.x

pom.xml

+293
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,293 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Licensed to the Apache Software Foundation (ASF) under one or more
4+
~ contributor license agreements. See the NOTICE file distributed with
5+
~ this work for additional information regarding copyright ownership.
6+
~ The ASF licenses this file to You under the Apache License, Version 2.0
7+
~ (the "License"); you may not use this file except in compliance with
8+
~ the License. You may obtain a copy of the License at
9+
~
10+
~ http://www.apache.org/licenses/LICENSE-2.0
11+
~
12+
~ Unless required by applicable law or agreed to in writing, software
13+
~ distributed under the License is distributed on an "AS IS" BASIS,
14+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
~ See the License for the specific language governing permissions and
16+
~ limitations under the License.
17+
-->
18+
19+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21+
<parent>
22+
<groupId>org.apache</groupId>
23+
<artifactId>apache</artifactId>
24+
<version>21</version>
25+
</parent>
26+
<modelVersion>4.0.0</modelVersion>
27+
<groupId>org.apache.shenyu</groupId>
28+
<artifactId>shenyu-client-java</artifactId>
29+
<packaging>pom</packaging>
30+
<version>2.7.1-SNAPSHOT</version>
31+
<modules>
32+
<module>shenyu-client-java-core</module>
33+
<module>shenyu-client-java-http</module>
34+
<module>shenyu-client-java-dubbo</module>
35+
<module>shenyu-client-java-sofa</module>
36+
<module>shenyu-client-java-tars</module>
37+
<module>shenyu-client-java-grpc</module>
38+
<module>shenyu-client-java-motan</module>
39+
<module>shenyu-client-java-websocket</module>
40+
<module>shenyu-client-java-api-docs-annotations</module>
41+
<module>shenyu-client-java-autoconfig</module>
42+
</modules>
43+
44+
<properties>
45+
<java.version>1.8</java.version>
46+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
47+
<skipTests>false</skipTests>
48+
<!-- maven plugin version start -->
49+
<exec-maven-plugin.version>1.6.0</exec-maven-plugin.version>
50+
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
51+
<nexus-staging-maven-plugin.version>1.6.3</nexus-staging-maven-plugin.version>
52+
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
53+
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
54+
<maven-surefire-plugin.version>3.0.0-M4</maven-surefire-plugin.version>
55+
<maven-javadoc-plugin.version>3.6.0</maven-javadoc-plugin.version>
56+
<maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
57+
<maven-resources-plugin.version>3.2.0</maven-resources-plugin.version>
58+
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
59+
<versions-maven-plugin.version>2.5</versions-maven-plugin.version>
60+
<maven-checkstyle-plugin.version>3.4.0</maven-checkstyle-plugin.version>
61+
<apache-rat-plugin.version>0.15</apache-rat-plugin.version>
62+
<frontend-maven-plugin.version>1.6</frontend-maven-plugin.version>
63+
<frontend-maven-plugin.node.version>v12.14.1</frontend-maven-plugin.node.version>
64+
<maven-shade-plugin.version>3.5.1</maven-shade-plugin.version>
65+
<docker-maven-plugin.version>0.40.1</docker-maven-plugin.version>
66+
<maven-assembly-plugin.version>3.5.0</maven-assembly-plugin.version>
67+
<!-- maven plugin version end -->
68+
69+
<!-- dependency version start -->
70+
<gson.version>2.9.0</gson.version>
71+
<okhttp.version>4.9.3</okhttp.version>
72+
<javatuples.version>1.2</javatuples.version>
73+
<protobuf-java.version>3.25.5</protobuf-java.version>
74+
<apache.dubbo.version>3.2.14</apache.dubbo.version>
75+
<spring-boot.version>2.7.18</spring-boot.version>
76+
<sofa.rpc.version>5.7.6</sofa.rpc.version>
77+
<sofa-common-tools.version>2.1.1</sofa-common-tools.version>
78+
<tars.version>1.7.2</tars.version>
79+
<motan.version>1.2.1</motan.version>
80+
</properties>
81+
82+
<dependencyManagement>
83+
<dependencies>
84+
<dependency>
85+
<!-- Import dependency management from Spring Boot -->
86+
<groupId>org.springframework.boot</groupId>
87+
<artifactId>spring-boot-dependencies</artifactId>
88+
<version>${spring-boot.version}</version>
89+
<type>pom</type>
90+
<scope>import</scope>
91+
</dependency>
92+
</dependencies>
93+
</dependencyManagement>
94+
95+
<dependencies>
96+
<dependency>
97+
<groupId>com.squareup.okhttp3</groupId>
98+
<artifactId>okhttp</artifactId>
99+
<version>${okhttp.version}</version>
100+
</dependency>
101+
<dependency>
102+
<groupId>com.google.code.gson</groupId>
103+
<artifactId>gson</artifactId>
104+
<version>${gson.version}</version>
105+
</dependency>
106+
<dependency>
107+
<groupId>org.javatuples</groupId>
108+
<artifactId>javatuples</artifactId>
109+
<version>${javatuples.version}</version>
110+
</dependency>
111+
<dependency>
112+
<groupId>org.springframework</groupId>
113+
<artifactId>spring-test</artifactId>
114+
<scope>test</scope>
115+
</dependency>
116+
</dependencies>
117+
118+
<build>
119+
<plugins>
120+
<plugin>
121+
<groupId>org.apache.maven.plugins</groupId>
122+
<artifactId>maven-source-plugin</artifactId>
123+
<version>${maven-source-plugin.version}</version>
124+
<executions>
125+
<execution>
126+
<phase>package</phase>
127+
<goals>
128+
<goal>jar-no-fork</goal>
129+
</goals>
130+
</execution>
131+
</executions>
132+
</plugin>
133+
<plugin>
134+
<groupId>org.apache.maven.plugins</groupId>
135+
<artifactId>maven-surefire-plugin</artifactId>
136+
<version>${maven-surefire-plugin.version}</version>
137+
<configuration>
138+
<skip>${skipTests}</skip>
139+
</configuration>
140+
</plugin>
141+
<plugin>
142+
<groupId>org.apache.maven.plugins</groupId>
143+
<artifactId>maven-javadoc-plugin</artifactId>
144+
<version>${maven-javadoc-plugin.version}</version>
145+
<configuration>
146+
<source>${java.version}</source>
147+
<sourcepath>src/main/java</sourcepath>
148+
<detectJavaApiLink>false</detectJavaApiLink>
149+
<detectOfflineLinks>false</detectOfflineLinks>
150+
</configuration>
151+
<executions>
152+
<execution>
153+
<phase>package</phase>
154+
<goals>
155+
<goal>jar</goal>
156+
</goals>
157+
</execution>
158+
</executions>
159+
</plugin>
160+
161+
<plugin>
162+
<groupId>org.apache.maven.plugins</groupId>
163+
<artifactId>maven-compiler-plugin</artifactId>
164+
<version>${maven-compiler-plugin.version}</version>
165+
<configuration>
166+
<source>${java.version}</source>
167+
<target>${java.version}</target>
168+
<encoding>${project.build.sourceEncoding}</encoding>
169+
<compilerArgs>
170+
<arg>-parameters</arg>
171+
</compilerArgs>
172+
</configuration>
173+
</plugin>
174+
<plugin>
175+
<groupId>org.apache.maven.plugins</groupId>
176+
<artifactId>maven-release-plugin</artifactId>
177+
<version>${maven-release-plugin.version}</version>
178+
<configuration>
179+
<tagNameFormat>v@{project.version}</tagNameFormat>
180+
<autoVersionSubmodules>true</autoVersionSubmodules>
181+
</configuration>
182+
</plugin>
183+
<plugin>
184+
<groupId>org.codehaus.mojo</groupId>
185+
<artifactId>versions-maven-plugin</artifactId>
186+
<version>${versions-maven-plugin.version}</version>
187+
</plugin>
188+
<plugin>
189+
<groupId>org.apache.maven.plugins</groupId>
190+
<artifactId>maven-checkstyle-plugin</artifactId>
191+
<version>${maven-checkstyle-plugin.version}</version>
192+
<configuration>
193+
<consoleOutput>true</consoleOutput>
194+
<configLocation>/script/shenyu_checkstyle.xml</configLocation>
195+
<headerLocation>/script/checkstyle-header.txt</headerLocation>
196+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
197+
<excludes>**/transfer/**/*</excludes>
198+
</configuration>
199+
<executions>
200+
<execution>
201+
<id>validate</id>
202+
<phase>validate</phase>
203+
<goals>
204+
<goal>check</goal>
205+
</goals>
206+
</execution>
207+
</executions>
208+
</plugin>
209+
210+
<plugin>
211+
<groupId>org.jacoco</groupId>
212+
<artifactId>jacoco-maven-plugin</artifactId>
213+
<version>${jacoco-maven-plugin.version}</version>
214+
<executions>
215+
<execution>
216+
<goals>
217+
<goal>prepare-agent</goal>
218+
</goals>
219+
</execution>
220+
<execution>
221+
<id>report</id>
222+
<phase>test</phase>
223+
<goals>
224+
<goal>report</goal>
225+
</goals>
226+
</execution>
227+
</executions>
228+
</plugin>
229+
230+
<plugin>
231+
<groupId>org.apache.rat</groupId>
232+
<artifactId>apache-rat-plugin</artifactId>
233+
<version>${apache-rat-plugin.version}</version>
234+
<configuration>
235+
<excludes>
236+
<exclude>**/target/**</exclude>
237+
<exclude>**/logs/**</exclude>
238+
<exclude>**/*.log</exclude>
239+
<exclude>**/*.tar.gz</exclude>
240+
<exclude>**/spring.factories</exclude>
241+
<exclude>**/spring.provides</exclude>
242+
<exclude>/script/**</exclude>
243+
<exclude>**/*.json</exclude>
244+
<!-- IDE files -->
245+
<exclude>**/*.iml</exclude>
246+
<exclude>**/.idea/**</exclude>
247+
<exclude>**/*.classpath</exclude>
248+
<exclude>**/.project</exclude>
249+
<exclude>**/.settings/**</exclude>
250+
<exclude>**/dependency-reduced-pom.xml</exclude>
251+
<!-- git files -->
252+
<exclude>**/.gitignore</exclude>
253+
<exclude>**/.gitmodules</exclude>
254+
<exclude>**/.git/**</exclude>
255+
<!-- CI files -->
256+
<exclude>**/.travis.yml</exclude>
257+
<exclude>**/.codecov.yml</exclude>
258+
<exclude>**/.mvn/jvm.config</exclude>
259+
<exclude>**/.mvn/wrapper/maven-wrapper.properties</exclude>
260+
<!-- GitHub files -->
261+
<exclude>**/.github/**</exclude>
262+
<!-- Gitpod files -->
263+
<exclude>**/.gitpod.yml</exclude>
264+
<!-- document files -->
265+
<exclude>**/*.md</exclude>
266+
<excldue>**/*.MD</excldue>
267+
<exclude>**/*.txt</exclude>
268+
<exclude>**/docs/**</exclude>
269+
<!-- UI files -->
270+
<exclude>**/.babelrc</exclude>
271+
<exclude>**/.editorconfig</exclude>
272+
<exclude>**/.eslintignore</exclude>
273+
<exclude>**/assets/**</exclude>
274+
<exclude>**/dist/**</exclude>
275+
<exclude>**/etc/**</exclude>
276+
<exclude>**/node/**</exclude>
277+
<exclude>**/node_modules/**</exclude>
278+
<exclude>**/test/coverage/**</exclude>
279+
<exclude>**/resources/static/</exclude>
280+
</excludes>
281+
</configuration>
282+
<executions>
283+
<execution>
284+
<phase>verify</phase>
285+
<goals>
286+
<goal>check</goal>
287+
</goals>
288+
</execution>
289+
</executions>
290+
</plugin>
291+
</plugins>
292+
</build>
293+
</project>

script/checkstyle-header.txt

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/

0 commit comments

Comments
 (0)