Skip to content

Commit d79ae44

Browse files
committed
build: make all modules use the same version as parent, defined by the Â'revision' property
https://maven.apache.org/maven-ci-friendly.html
1 parent e442aec commit d79ae44

File tree

7 files changed

+22
-39
lines changed

7 files changed

+22
-39
lines changed

api/pom.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
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">
5+
<modelVersion>4.0.0</modelVersion>
56
<parent>
67
<artifactId>commandflow</artifactId>
78
<groupId>me.fixeddev</groupId>
8-
<version>0.6.0</version>
9+
<version>${revision}</version>
910
</parent>
10-
<modelVersion>4.0.0</modelVersion>
11-
12-
<version>${version.api}</version>
1311
<artifactId>commandflow-api</artifactId>
1412
<packaging>jar</packaging>
1513

brigadier/pom.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
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">
5+
<modelVersion>4.0.0</modelVersion>
56
<parent>
67
<artifactId>commandflow</artifactId>
78
<groupId>me.fixeddev</groupId>
8-
<version>0.6.0</version>
9+
<version>${revision}</version>
910
</parent>
10-
<modelVersion>4.0.0</modelVersion>
11-
12-
<version>${version.brigadier}</version>
1311
<artifactId>commandflow-brigadier</artifactId>
1412
<packaging>jar</packaging>
1513

@@ -28,13 +26,13 @@
2826
<dependency>
2927
<groupId>me.fixeddev</groupId>
3028
<artifactId>commandflow-api</artifactId>
31-
<version>${version.api}</version>
29+
<version>${revision}</version>
3230
<scope>compile</scope>
3331
</dependency>
3432
<dependency>
3533
<groupId>me.fixeddev</groupId>
3634
<artifactId>commandflow-bukkit</artifactId>
37-
<version>${version.bukkit}</version>
35+
<version>${project.version}</version>
3836
<scope>compile</scope>
3937
<exclusions>
4038
<exclusion>

bukkit/pom.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
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-
76
<parent>
87
<artifactId>commandflow</artifactId>
98
<groupId>me.fixeddev</groupId>
10-
<version>0.6.0</version>
9+
<version>${revision}</version>
1110
</parent>
12-
13-
<version>${version.bukkit}</version>
1411
<artifactId>commandflow-bukkit</artifactId>
1512
<packaging>jar</packaging>
1613

@@ -31,7 +28,7 @@
3128
<dependency>
3229
<groupId>me.fixeddev</groupId>
3330
<artifactId>commandflow-api</artifactId>
34-
<version>${version.api}</version>
31+
<version>${project.version}</version>
3532
<scope>compile</scope>
3633
</dependency>
3734
</dependencies>

bungee/pom.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
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">
5+
<modelVersion>4.0.0</modelVersion>
56
<parent>
67
<groupId>me.fixeddev</groupId>
78
<artifactId>commandflow</artifactId>
8-
<version>0.6.0</version>
9+
<version>${revision}</version>
910
</parent>
10-
<modelVersion>4.0.0</modelVersion>
11-
12-
<version>${version.bungee}</version>
1311
<artifactId>commandflow-bungee</artifactId>
12+
<packaging>jar</packaging>
1413

1514
<repositories>
1615
<repository>
@@ -23,7 +22,7 @@
2322
<dependency>
2423
<groupId>me.fixeddev</groupId>
2524
<artifactId>commandflow-api</artifactId>
26-
<version>${version.api}</version>
25+
<version>${project.version}</version>
2726
<scope>compile</scope>
2827
</dependency>
2928
<dependency>

discord/pom.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
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">
5+
<modelVersion>4.0.0</modelVersion>
56
<parent>
6-
<artifactId>commandflow</artifactId>
77
<groupId>me.fixeddev</groupId>
8-
<version>0.6.0</version>
8+
<artifactId>commandflow</artifactId>
9+
<version>${revision}</version>
910
</parent>
10-
<modelVersion>4.0.0</modelVersion>
11-
12-
<version>${version.discord}</version>
1311
<artifactId>commandflow-discord</artifactId>
1412
<packaging>jar</packaging>
1513

@@ -30,7 +28,7 @@
3028
<dependency>
3129
<groupId>me.fixeddev</groupId>
3230
<artifactId>commandflow-api</artifactId>
33-
<version>${version.api}</version>
31+
<version>${project.version}</version>
3432
<scope>compile</scope>
3533
</dependency>
3634
</dependencies>

pom.xml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>me.fixeddev</groupId>
88
<artifactId>commandflow</artifactId>
9-
<version>0.6.0</version>
9+
<version>${revision}</version>
1010
<modules>
1111
<module>api</module>
1212
<module>bukkit</module>
@@ -42,13 +42,7 @@
4242

4343
<properties>
4444
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
45-
46-
<version.api>0.6.0</version.api>
47-
<version.bukkit>0.6.0</version.bukkit>
48-
<version.discord>0.6.0</version.discord>
49-
<version.bungee>0.6.0</version.bungee>
50-
<version.velocity>0.6.0</version.velocity>
51-
<version.brigadier>0.6.0</version.brigadier>
45+
<revision>0.6.0</revision>
5246
</properties>
5347

5448
<build>

velocity/pom.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
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">
5+
<modelVersion>4.0.0</modelVersion>
56
<parent>
67
<groupId>me.fixeddev</groupId>
78
<artifactId>commandflow</artifactId>
8-
<version>0.6.0</version>
9+
<version>${revision}</version>
910
</parent>
10-
<modelVersion>4.0.0</modelVersion>
11-
12-
<version>${version.velocity}</version>
1311
<artifactId>commandflow-velocity</artifactId>
12+
<packaging>jar</packaging>
1413

1514
<repositories>
1615
<repository>
@@ -23,7 +22,7 @@
2322
<dependency>
2423
<groupId>me.fixeddev</groupId>
2524
<artifactId>commandflow-api</artifactId>
26-
<version>${version.api}</version>
25+
<version>${project.version}</version>
2726
<scope>compile</scope>
2827
</dependency>
2928
<dependency>

0 commit comments

Comments
 (0)