Skip to content

Commit f0574e7

Browse files
committed
chore(deps): update testcontainers version, and fix revision question
* ref: https://maven.apache.org/guides/mini/guide-maven-ci-friendly.html#install-deploy
1 parent 9512bb3 commit f0574e7

File tree

4 files changed

+34
-4
lines changed

4 files changed

+34
-4
lines changed

demo-kafka/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<dependency>
1717
<groupId>com.helltractor.demo</groupId>
1818
<artifactId>demo-util</artifactId>
19-
<version>${revision}</version>
19+
<version>${project.version}</version>
2020
</dependency>
2121

2222
<dependency>

demo-redis-lettuce/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
<artifactId>demo-redis-lettuce</artifactId>
1515

1616
<dependencies>
17-
1817
<dependency>
1918
<groupId>com.helltractor.demo</groupId>
2019
<artifactId>demo-util</artifactId>
21-
<version>${revision}</version>
20+
<version>${project.version}</version>
2221
<scope>compile</scope>
2322
</dependency>
2423

demo-util/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
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>
6+
67
<parent>
78
<groupId>com.helltractor.demo</groupId>
89
<artifactId>parent</artifactId>

pom.xml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<lombok.version>1.18.22</lombok.version>
4747
<!-- test -->
4848
<mocktio.version>5.14.0</mocktio.version>
49-
<testcontainers.version>1.20.4</testcontainers.version>
49+
<testcontainers.version>1.20.6</testcontainers.version>
5050
</properties>
5151

5252
<dependencyManagement>
@@ -75,4 +75,34 @@
7575
</dependencies>
7676
</dependencyManagement>
7777

78+
<build>
79+
<plugins>
80+
<plugin>
81+
<groupId>org.codehaus.mojo</groupId>
82+
<artifactId>flatten-maven-plugin</artifactId>
83+
<version>1.1.0</version>
84+
<configuration>
85+
<updatePomFile>true</updatePomFile>
86+
<flattenMode>resolveCiFriendliesOnly</flattenMode>
87+
</configuration>
88+
<executions>
89+
<execution>
90+
<id>flatten</id>
91+
<phase>process-resources</phase>
92+
<goals>
93+
<goal>flatten</goal>
94+
</goals>
95+
</execution>
96+
<execution>
97+
<id>flatten.clean</id>
98+
<phase>clean</phase>
99+
<goals>
100+
<goal>clean</goal>
101+
</goals>
102+
</execution>
103+
</executions>
104+
</plugin>
105+
</plugins>
106+
</build>
107+
78108
</project>

0 commit comments

Comments
 (0)