refactor: use ${revision} for CI-friendly version management

This commit is contained in:
SashegDev
2026-07-29 06:16:32 +00:00
parent 599e9d5e67
commit 6a0c59f032
3 changed files with 25 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>me.sashegdev</groupId> <groupId>me.sashegdev</groupId>
<artifactId>ZernMCLauncher</artifactId> <artifactId>ZernMCLauncher</artifactId>
<version>1.0.11</version> <version>${revision}</version>
</parent> </parent>
<artifactId>zernmc-bootstrap</artifactId> <artifactId>zernmc-bootstrap</artifactId>
+1 -1
View File
@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>me.sashegdev</groupId> <groupId>me.sashegdev</groupId>
<artifactId>ZernMCLauncher</artifactId> <artifactId>ZernMCLauncher</artifactId>
<version>1.0.11</version> <version>${revision}</version>
</parent> </parent>
<artifactId>zernmclauncher</artifactId> <artifactId>zernmclauncher</artifactId>
+23 -1
View File
@@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>me.sashegdev</groupId> <groupId>me.sashegdev</groupId>
<artifactId>ZernMCLauncher</artifactId> <artifactId>ZernMCLauncher</artifactId>
<version>1.0.11</version> <version>${revision}</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>ZernMC Launcher Parent</name> <name>ZernMC Launcher Parent</name>
@@ -18,6 +18,7 @@
</modules> </modules>
<properties> <properties>
<revision>1.0.11</revision>
<maven.compiler.source>21</maven.compiler.source> <maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target> <maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -104,6 +105,27 @@
<build> <build>
<plugins> <plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals><goal>flatten</goal></goals>
</execution>
<execution>
<id>flatten-clean</id>
<phase>clean</phase>
<goals><goal>clean</goal></goals>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>