Skip to content

Commit e34de64

Browse files
author
walker
committed
add revision
1 parent 3cd6a13 commit e34de64

File tree

25 files changed

+72
-39
lines changed

25 files changed

+72
-39
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ target/
1111
*.dat
1212
examples/**/testapp/
1313
**/.DS_Store
14+
.flattened-pom.xml

core/client.pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.tencent.tars</groupId>
88
<artifactId>tars-parent</artifactId>
9-
<version>1.7.2</version>
9+
<version>${revision}</version>
1010
</parent>
1111
<artifactId>tars-client</artifactId>
1212
<name>${project.artifactId}</name>

core/pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<parent>
77
<groupId>com.tencent.tars</groupId>
88
<artifactId>tars-parent</artifactId>
9-
<version>1.7.2</version>
9+
<version>${revision}</version>
10+
<relativePath>../pom.xml</relativePath>
1011
</parent>
1112
<artifactId>tars-core</artifactId>
1213
<name>${project.artifactId}</name>

core/server.pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.tencent.tars</groupId>
88
<artifactId>tars-parent</artifactId>
9-
<version>1.7.2</version>
9+
<version>${revision}</version>
1010
</parent>
1111
<artifactId>tars-server</artifactId>
1212
<name>${project.artifactId}</name>

distributedContext/pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<parent>
77
<groupId>com.tencent.tars</groupId>
88
<artifactId>tars-parent</artifactId>
9-
<version>1.7.2</version>
9+
<version>${revision}</version>
10+
<relativePath>../pom.xml</relativePath>
1011
</parent>
1112

1213
<artifactId>tars-context</artifactId>

examples/pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
<parent>
66
<groupId>com.tencent.tars</groupId>
77
<artifactId>tars-parent</artifactId>
8-
<version>1.7.2</version>
8+
<version>${revision}</version>
9+
<relativePath>../pom.xml</relativePath>
910
</parent>
1011
<artifactId>tars-examples</artifactId>
1112
<name>${project.artifactId}</name>

examples/quickstart-client/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
<dependency>
1414
<groupId>com.tencent.tars</groupId>
1515
<artifactId>tars-core</artifactId>
16-
<version>1.7.2</version>
16+
<version>${revision}</version>
1717
</dependency> <dependency>
1818
<groupId>com.tencent.tars</groupId>
1919
<artifactId>tars-net</artifactId>
20-
<version>1.7.2</version>
20+
<version>${revision}</version>
2121
</dependency>
2222

2323
</dependencies>

examples/quickstart-server/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.tencent.tars</groupId>
66
<artifactId>tars-parent</artifactId>
7-
<version>1.7.2</version>
7+
<version>${revision}</version>
88
</parent>
99
<artifactId>tars-quickstart-server</artifactId>
1010
<name>${project.artifactId}</name>

examples/stress-server/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.tencent.tars</groupId>
66
<artifactId>tars-parent</artifactId>
7-
<version>1.7.2</version>
7+
<version>${revision}</version>
88
</parent>
99
<artifactId>tars-stress-server</artifactId>
1010
<name>${project.artifactId}</name>

examples/tars-spring-boot-client/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<dependency>
3636
<groupId>com.tencent.tars</groupId>
3737
<artifactId>tars-spring-boot-starter</artifactId>
38-
<version>1.7.2</version>
38+
<version>${revision}</version>
3939
</dependency>
4040
</dependencies>
4141

@@ -84,7 +84,7 @@
8484
<plugin>
8585
<groupId>com.tencent.tars</groupId>
8686
<artifactId>tars-maven-plugin</artifactId>
87-
<version>1.7.2</version>
87+
<version>${revision}</version>
8888
<configuration>
8989
<tars2JavaConfig>
9090
<!-- tars文件位置 -->

examples/tars-spring-boot-http-server/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<dependency>
3333
<groupId>com.tencent.tars</groupId>
3434
<artifactId>tars-spring-boot-starter</artifactId>
35-
<version>1.7.2</version>
35+
<version>${revision}</version>
3636
</dependency>
3737
</dependencies>
3838

@@ -81,7 +81,7 @@
8181
<plugin>
8282
<groupId>com.tencent.tars</groupId>
8383
<artifactId>tars-maven-plugin</artifactId>
84-
<version>1.7.2</version>
84+
<version>${revision}</version>
8585
<configuration>
8686
<tars2JavaConfig>
8787
<!-- tars文件位置 -->

examples/tars-spring-boot-server/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>tars-examples</artifactId>
77
<groupId>com.tencent.tars</groupId>
8-
<version>1.7.2</version>
8+
<version>${revision}</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>com.tencent.tars</groupId>
3333
<artifactId>tars-spring-boot-starter</artifactId>
34-
<version>1.7.2</version>
34+
<version>${revision}</version>
3535
</dependency>
3636
</dependencies>
3737

examples/tars-spring-cloud-client/pom.xml

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.tencent.tars</groupId>
66
<artifactId>tars-spring-cloud-client</artifactId>
7-
<version> 1.7.2</version>
7+
<version> ${revision}</version>
88
<packaging>war</packaging>
99

1010
<name>tars-spring-cloud-client</name>
@@ -23,22 +23,22 @@
2323
<dependency>
2424
<groupId>com.tencent.tars</groupId>
2525
<artifactId>tars-core</artifactId>
26-
<version> 1.7.2</version>
26+
<version> ${revision}</version>
2727
</dependency>
2828
<dependency>
2929
<groupId>com.tencent.tars</groupId>
3030
<artifactId>tars-spring</artifactId>
31-
<version>1.7.2</version>
31+
<version>${revision}</version>
3232
</dependency>
3333
<dependency>
3434
<groupId>com.tencent.tars</groupId>
3535
<artifactId>tars-protobuf</artifactId>
36-
<version>1.7.2</version>
36+
<version>${revision}</version>
3737
</dependency>
3838
<dependency>
3939
<groupId>com.tencent.tars</groupId>
4040
<artifactId>tars-spring-cloud-starter</artifactId>
41-
<version> 1.7.2</version>
41+
<version> ${revision}</version>
4242
</dependency>
4343
</dependencies>
4444
</project>

examples/tars-spring-cloud-server/pom.xml

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.tencent.tars</groupId>
55
<artifactId>tars-spring-cloud-server</artifactId>
66
<packaging>war</packaging>
7-
<version>1.7.2</version>
7+
<version>${revision}</version>
88

99
<name>tars-spring-cloud-server</name>
1010
<url>http://maven.apache.org</url>
@@ -43,22 +43,22 @@
4343
<dependency>
4444
<groupId>com.tencent.tars</groupId>
4545
<artifactId>tars-core</artifactId>
46-
<version> 1.7.2</version>
46+
<version> ${revision}</version>
4747
</dependency>
4848
<dependency>
4949
<groupId>com.tencent.tars</groupId>
5050
<artifactId>tars-spring</artifactId>
51-
<version>1.7.2</version>
51+
<version>${revision}</version>
5252
</dependency>
5353
<dependency>
5454
<groupId>com.tencent.tars</groupId>
5555
<artifactId>tars-protobuf</artifactId>
56-
<version>1.7.2</version>
56+
<version>${revision}</version>
5757
</dependency>
5858
<dependency>
5959
<groupId>com.tencent.tars</groupId>
6060
<artifactId>tars-spring-cloud-starter</artifactId>
61-
<version>1.7.2</version>
61+
<version>${revision}</version>
6262
</dependency>
6363
</dependencies>
6464

examples/tars-spring-server/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>tars-examples</artifactId>
77
<groupId>com.tencent.tars</groupId>
8-
<version> 1.7.2</version>
8+
<version> ${revision}</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111
<packaging>war</packaging>

net/pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<parent>
77
<groupId>com.tencent.tars</groupId>
88
<artifactId>tars-parent</artifactId>
9-
<version>1.7.2</version>
9+
<version>${revision}</version>
10+
<relativePath>../pom.xml</relativePath>
1011
</parent>
1112
<artifactId>tars-net</artifactId>
1213
<packaging>jar</packaging>

pom.xml

+29-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<groupId>com.tencent.tars</groupId>
1212
<artifactId>tars-parent</artifactId>
13-
<version>1.7.2</version>
13+
<version>${revision}</version>
1414
<packaging>pom</packaging>
1515
<name>Tars</name>
1616
<description>Super POM For Projects</description>
@@ -50,6 +50,7 @@
5050
</modules>
5151

5252
<properties>
53+
<revision>1.7.2</revision>
5354
<java_source_version>1.8</java_source_version>
5455
<java_target_version>1.8</java_target_version>
5556
<file_encoding>UTF-8</file_encoding>
@@ -63,6 +64,7 @@
6364
<maven_deploy_plugin_version>2.8.2</maven_deploy_plugin_version>
6465
<maven_release_plugin_version>2.5.3</maven_release_plugin_version>
6566
<maven_junit_version>4.8.2</maven_junit_version>
67+
<maven_flatten_version>1.2.5</maven_flatten_version>
6668
</properties>
6769

6870
<build>
@@ -77,6 +79,32 @@
7779
<artifactId>maven-javadoc-plugin</artifactId>
7880
<version>${maven_javadoc_plugin_version}</version>
7981
</plugin>
82+
83+
<plugin>
84+
<groupId>org.codehaus.mojo</groupId>
85+
<artifactId>flatten-maven-plugin</artifactId>
86+
<version>${maven_flatten_version}</version>
87+
<configuration>
88+
<updatePomFile>true</updatePomFile>
89+
<flattenMode>resolveCiFriendliesOnly</flattenMode>
90+
</configuration>
91+
<executions>
92+
<execution>
93+
<id>flatten</id>
94+
<phase>process-resources</phase>
95+
<goals>
96+
<goal>flatten</goal>
97+
</goals>
98+
</execution>
99+
<execution>
100+
<id>flatten.clean</id>
101+
<phase>clean</phase>
102+
<goals>
103+
<goal>clean</goal>
104+
</goals>
105+
</execution>
106+
</executions>
107+
</plugin>
80108
</plugins>
81109

82110
<pluginManagement>

protobuf/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>tars-parent</artifactId>
77
<groupId>com.tencent.tars</groupId>
8-
<version>1.7.2</version>
8+
<version>${revision}</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

spring/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>tars-parent</artifactId>
66
<groupId>com.tencent.tars</groupId>
7-
<version>1.7.2</version>
7+
<version>${revision}</version>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>
1010

spring/tars-spring-boot-starter/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>tars-spring-parent</artifactId>
77
<groupId>com.tencent.tars</groupId>
8-
<version>1.7.2</version>
8+
<version>${revision}</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

spring/tars-spring-cloud-starter/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>tars-spring-parent</artifactId>
77
<groupId>com.tencent.tars</groupId>
8-
<version>1.7.2</version>
8+
<version>${revision}</version>
99
</parent>
1010

1111
<artifactId>tars-spring-cloud-starter</artifactId>

spring/tars-spring/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>tars-spring-parent</artifactId>
66
<groupId>com.tencent.tars</groupId>
7-
<version>1.7.2</version>
7+
<version>${revision}</version>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>
1010

tars-plugins/pom.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>tars-parent</artifactId>
77
<groupId>com.tencent.tars</groupId>
8-
<version>1.7.2</version>
8+
<version>${revision}</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111
<artifactId>tars-plugins</artifactId>
@@ -16,7 +16,7 @@
1616
<maven.compiler.source>${targetJdk}</maven.compiler.source>
1717
<maven.compiler.target>${targetJdk}</maven.compiler.target>
1818
<encoding>UTF-8</encoding>
19-
<slf4j.version>1.7.25</slf4j.version>
19+
<slf4j.version>${revision}5</slf4j.version>
2020
</properties>
2121
<dependencies>
2222
<dependency>
@@ -28,12 +28,12 @@
2828
<dependency>
2929
<groupId>com.tencent.tars</groupId>
3030
<artifactId>tars-client</artifactId>
31-
<version>1.7.2</version>
31+
<version>${revision}</version>
3232
</dependency>
3333
<dependency>
3434
<groupId>com.tencent.tars</groupId>
3535
<artifactId>tars-server</artifactId>
36-
<version>1.7.2</version>
36+
<version>${revision}</version>
3737
</dependency>
3838
<dependency>
3939
<groupId>org.hamcrest</groupId>

tools/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.tencent.tars</groupId>
77
<artifactId>tars-parent</artifactId>
8-
<version>1.7.2</version>
8+
<version>${revision}</version>
99
</parent>
1010
<artifactId>tars-tools</artifactId>
1111
<name>${project.artifactId}</name>

tools/tars-maven-plugin/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.tencent.tars</groupId>
88
<artifactId>tars-tools</artifactId>
9-
<version>1.7.2</version>
9+
<version>${revision}</version>
1010
</parent>
1111
<artifactId>tars-maven-plugin</artifactId>
1212
<name>${project.artifactId}</name>

0 commit comments

Comments
 (0)