| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one or more |
| ~ contributor license agreements. See the NOTICE file distributed with |
| ~ this work for additional information regarding copyright ownership. |
| ~ The ASF licenses this file to You under the Apache License, Version 2.0 |
| ~ (the "License"); you may not use this file except in compliance with |
| ~ the License. You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <parent> |
| <groupId>org.apache</groupId> |
| <artifactId>apache</artifactId> |
| <version>21</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| <groupId>org.apache.shenyu</groupId> |
| <artifactId>shenyu-client-java</artifactId> |
| <packaging>pom</packaging> |
| <version>2.7.0.1-jdk8-SNAPSHOT</version> |
| <modules> |
| <module>shenyu-client</module> |
| </modules> |
| |
| <properties> |
| <java.version>1.8</java.version> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <skipTests>false</skipTests> |
| <!-- maven plugin version start --> |
| <exec-maven-plugin.version>1.6.0</exec-maven-plugin.version> |
| <jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version> |
| <nexus-staging-maven-plugin.version>1.6.3</nexus-staging-maven-plugin.version> |
| <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version> |
| <maven-source-plugin.version>3.0.1</maven-source-plugin.version> |
| <maven-surefire-plugin.version>3.0.0-M4</maven-surefire-plugin.version> |
| <maven-javadoc-plugin.version>3.6.0</maven-javadoc-plugin.version> |
| <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version> |
| <maven-resources-plugin.version>3.2.0</maven-resources-plugin.version> |
| <maven-release-plugin.version>2.5.3</maven-release-plugin.version> |
| <versions-maven-plugin.version>2.5</versions-maven-plugin.version> |
| <maven-checkstyle-plugin.version>3.4.0</maven-checkstyle-plugin.version> |
| <apache-rat-plugin.version>0.15</apache-rat-plugin.version> |
| <frontend-maven-plugin.version>1.6</frontend-maven-plugin.version> |
| <frontend-maven-plugin.node.version>v12.14.1</frontend-maven-plugin.node.version> |
| <maven-shade-plugin.version>3.5.1</maven-shade-plugin.version> |
| <docker-maven-plugin.version>0.40.1</docker-maven-plugin.version> |
| <maven-assembly-plugin.version>3.5.0</maven-assembly-plugin.version> |
| <wiremock.version>2.18.0</wiremock.version> |
| <commons-collections4.version>4.4</commons-collections4.version> |
| <asm.version>9.2</asm.version> |
| <bcprov-jdk18on.version>1.78</bcprov-jdk18on.version> |
| <!-- maven plugin version end --> |
| |
| <!-- dependency version start --> |
| <gson.version>2.9.0</gson.version> |
| <okhttp.version>4.9.3</okhttp.version> |
| <javatuples.version>1.2</javatuples.version> |
| <protobuf-java.version>3.21.12</protobuf-java.version> |
| <apache.dubbo.version>3.2.14</apache.dubbo.version> |
| <spring-boot.version>2.7.18</spring-boot.version> |
| <sofa.rpc.version>5.7.6</sofa.rpc.version> |
| <sofa-common-tools.version>2.1.1</sofa-common-tools.version> |
| <tars.version>1.7.2</tars.version> |
| <motan.version>1.2.1</motan.version> |
| <sofa-rpc-all.version>5.7.6</sofa-rpc-all.version> |
| <jaxb.api.version>2.3.1</jaxb.api.version> |
| <guava.version>32.0.0-jre</guava.version> |
| <okhttp.version>4.9.3</okhttp.version> |
| <bcprov-jdk18on.version>1.78</bcprov-jdk18on.version> |
| <mockito.version>3.5.15</mockito.version> |
| <awaitility.version>4.0.3</awaitility.version> |
| </properties> |
| |
| <dependencyManagement> |
| <dependencies> |
| <dependency> |
| <!-- Import dependency management from Spring Boot --> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-dependencies</artifactId> |
| <version>${spring-boot.version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-collections4</artifactId> |
| <version>${commons-collections4.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.ow2.asm</groupId> |
| <artifactId>asm-tree</artifactId> |
| <version>${asm.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.alipay.sofa</groupId> |
| <artifactId>sofa-rpc-all</artifactId> |
| <version>${sofa.rpc.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>net.jcip</groupId> |
| <artifactId>jcip-annotations</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <artifactId>grpc-api</artifactId> |
| <groupId>io.grpc</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>grpc-protobuf</artifactId> |
| <groupId>io.grpc</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>grpc-stub</artifactId> |
| <groupId>io.grpc</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>grpc-netty-shaded</artifactId> |
| <groupId>io.grpc</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.tencent.tars</groupId> |
| <artifactId>tars-spring-boot-starter</artifactId> |
| <version>${tars.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <version>1.7.36</version> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>jcl-over-slf4j</artifactId> |
| <version>1.7.36</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>${guava.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.bouncycastle</groupId> |
| <artifactId>bcprov-jdk18on</artifactId> |
| <version>${bcprov-jdk18on.version}</version> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| |
| <dependencies> |
| <dependency> |
| <groupId>com.squareup.okhttp3</groupId> |
| <artifactId>okhttp</artifactId> |
| <version>${okhttp.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.code.gson</groupId> |
| <artifactId>gson</artifactId> |
| <version>${gson.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.javatuples</groupId> |
| <artifactId>javatuples</artifactId> |
| <version>${javatuples.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-test</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.vintage</groupId> |
| <artifactId>junit-vintage-engine</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-library</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-junit-jupiter</artifactId> |
| <version>${mockito.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <version>${mockito.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-inline</artifactId> |
| <version>${mockito.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.awaitility</groupId> |
| <artifactId>awaitility</artifactId> |
| <version>${awaitility.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>javax.xml.bind</groupId> |
| <artifactId>jaxb-api</artifactId> |
| <version>${jaxb.api.version}</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <version>${maven-source-plugin.version}</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>jar-no-fork</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>${maven-surefire-plugin.version}</version> |
| <configuration> |
| <skip>${skipTests}</skip> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <version>${maven-javadoc-plugin.version}</version> |
| <configuration> |
| <source>${java.version}</source> |
| <sourcepath>src/main/java</sourcepath> |
| <detectJavaApiLink>false</detectJavaApiLink> |
| <detectOfflineLinks>false</detectOfflineLinks> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>${maven-compiler-plugin.version}</version> |
| <configuration> |
| <source>${java.version}</source> |
| <target>${java.version}</target> |
| <encoding>${project.build.sourceEncoding}</encoding> |
| <compilerArgs> |
| <arg>-parameters</arg> |
| </compilerArgs> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-release-plugin</artifactId> |
| <version>${maven-release-plugin.version}</version> |
| <configuration> |
| <tagNameFormat>v@{project.version}</tagNameFormat> |
| <autoVersionSubmodules>true</autoVersionSubmodules> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>versions-maven-plugin</artifactId> |
| <version>${versions-maven-plugin.version}</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <version>${maven-checkstyle-plugin.version}</version> |
| <configuration> |
| <consoleOutput>true</consoleOutput> |
| <configLocation>/script/shenyu_checkstyle.xml</configLocation> |
| <headerLocation>/script/checkstyle-header.txt</headerLocation> |
| <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| <excludes>**/transfer/**/*</excludes> |
| </configuration> |
| <executions> |
| <execution> |
| <id>validate</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.jacoco</groupId> |
| <artifactId>jacoco-maven-plugin</artifactId> |
| <version>${jacoco-maven-plugin.version}</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>prepare-agent</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>report</id> |
| <phase>test</phase> |
| <goals> |
| <goal>report</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <version>${apache-rat-plugin.version}</version> |
| <configuration> |
| <excludes> |
| <exclude>**/target/**</exclude> |
| <exclude>**/logs/**</exclude> |
| <exclude>**/*.log</exclude> |
| <exclude>**/*.tar.gz</exclude> |
| <exclude>**/spring.factories</exclude> |
| <exclude>**/spring.provides</exclude> |
| <exclude>/script/**</exclude> |
| <exclude>**/*.json</exclude> |
| <!-- IDE files --> |
| <exclude>**/*.iml</exclude> |
| <exclude>**/.idea/**</exclude> |
| <exclude>**/*.classpath</exclude> |
| <exclude>**/.project</exclude> |
| <exclude>**/.settings/**</exclude> |
| <exclude>**/dependency-reduced-pom.xml</exclude> |
| <!-- git files --> |
| <exclude>**/.gitignore</exclude> |
| <exclude>**/.gitmodules</exclude> |
| <exclude>**/.git/**</exclude> |
| <!-- CI files --> |
| <exclude>**/.travis.yml</exclude> |
| <exclude>**/.codecov.yml</exclude> |
| <exclude>**/.mvn/jvm.config</exclude> |
| <exclude>**/.mvn/wrapper/maven-wrapper.properties</exclude> |
| <!-- GitHub files --> |
| <exclude>**/.github/**</exclude> |
| <!-- Gitpod files --> |
| <exclude>**/.gitpod.yml</exclude> |
| <!-- document files --> |
| <exclude>**/*.md</exclude> |
| <excldue>**/*.MD</excldue> |
| <exclude>**/*.txt</exclude> |
| <exclude>**/docs/**</exclude> |
| <!-- UI files --> |
| <exclude>**/.babelrc</exclude> |
| <exclude>**/.editorconfig</exclude> |
| <exclude>**/.eslintignore</exclude> |
| <exclude>**/assets/**</exclude> |
| <exclude>**/dist/**</exclude> |
| <exclude>**/etc/**</exclude> |
| <exclude>**/node/**</exclude> |
| <exclude>**/node_modules/**</exclude> |
| <exclude>**/test/coverage/**</exclude> |
| <exclude>**/resources/static/</exclude> |
| </excludes> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>verify</phase> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |