Restore flatten plugin

This commit is contained in:
Chris H
2025-04-06 12:08:15 -04:00
parent 280d2fed6d
commit 5274c976ef
13 changed files with 46 additions and 21 deletions

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>forge</artifactId>
<groupId>forge</groupId>
<version>2.0.04-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -6,7 +6,7 @@
<parent>
<artifactId>forge</artifactId>
<groupId>forge</groupId>
<version>2.0.04-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<artifactId>forge-ai</artifactId>

View File

@@ -6,7 +6,7 @@
<parent>
<artifactId>forge</artifactId>
<groupId>forge</groupId>
<version>2.0.04-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<artifactId>forge-core</artifactId>

View File

@@ -6,7 +6,7 @@
<parent>
<artifactId>forge</artifactId>
<groupId>forge</groupId>
<version>2.0.04-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<artifactId>forge-game</artifactId>

View File

@@ -23,7 +23,7 @@
<parent>
<artifactId>forge</artifactId>
<groupId>forge</groupId>
<version>2.0.04-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<artifactId>forge-gui-android</artifactId>
@@ -66,7 +66,7 @@
<configuration>
<!-- generate versionName from revision property to snapshot-version property -->
<name>snapshot-version</name>
<value>2.0.03-SNAPSHOT</value>
<value>${revision}</value>
<regex>-SNAPSHOT</regex>
<replacement>-SNAPSHOT-${month.date}</replacement>
<failIfNoMatch>false</failIfNoMatch>

View File

@@ -4,7 +4,7 @@
<parent>
<artifactId>forge</artifactId>
<groupId>forge</groupId>
<version>2.0.04-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<artifactId>forge-gui-desktop</artifactId>
@@ -49,7 +49,7 @@
<configuration>
<!-- generate versionName from revision property to snapshot-version property -->
<name>snapshot-version</name>
<value>2.0.03-SNAPSHOT</value>
<value>${revision}</value>
<regex>-SNAPSHOT</regex>
<replacement>-SNAPSHOT-${month.date}</replacement>
<failIfNoMatch>false</failIfNoMatch>

View File

@@ -11,7 +11,7 @@
<parent>
<artifactId>forge</artifactId>
<groupId>forge</groupId>
<version>2.0.04-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<artifactId>forge-gui-ios</artifactId>
@@ -35,7 +35,7 @@
<filtering>true</filtering>
</resource>
</resources>
<finalName>forge-ios-2.0.03-SNAPSHOT</finalName>
<finalName>forge-ios-${revision}</finalName>
</build>
<dependencies>

View File

@@ -9,7 +9,7 @@
<parent>
<artifactId>forge</artifactId>
<groupId>forge</groupId>
<version>2.0.04-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<artifactId>forge-gui-mobile-dev</artifactId>
@@ -45,7 +45,7 @@
<configuration>
<!-- generate versionName from revision property to snapshot-version property -->
<name>snapshot-version</name>
<value>2.0.03-SNAPSHOT</value>
<value>${revision}</value>
<regex>-SNAPSHOT</regex>
<replacement>-SNAPSHOT-${month.date}</replacement>
<failIfNoMatch>false</failIfNoMatch>

View File

@@ -4,7 +4,7 @@
<parent>
<artifactId>forge</artifactId>
<groupId>forge</groupId>
<version>2.0.04-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<artifactId>forge-gui-mobile</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<artifactId>forge</artifactId>
<groupId>forge</groupId>
<version>2.0.04-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<artifactId>forge-gui</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<artifactId>forge</artifactId>
<groupId>forge</groupId>
<version>2.0.04-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<artifactId>forge-installer</artifactId>
@@ -39,7 +39,7 @@
<configuration>
<!-- generate versionName from revision property to snapshot-version property -->
<name>snapshot-version</name>
<value>2.0.03-SNAPSHOT</value>
<value>${revision}</value>
<regex>-SNAPSHOT</regex>
<replacement>-SNAPSHOT-${month.date}</replacement>
<failIfNoMatch>false</failIfNoMatch>

View File

@@ -4,7 +4,7 @@
<parent>
<artifactId>forge</artifactId>
<groupId>forge</groupId>
<version>2.0.04-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<artifactId>forge-lda</artifactId>
@@ -28,7 +28,7 @@
<filtering>true</filtering>
</resource>
</resources>
<finalName>forge-lda-2.0.03-SNAPSHOT</finalName>
<finalName>forge-lda-${revision}</finalName>
</build>
<dependencies>

31
pom.xml
View File

@@ -4,7 +4,7 @@
<artifactId>forge</artifactId>
<packaging>pom</packaging>
<name>Forge Parent</name>
<version>2.0.04-SNAPSHOT</version>
<version>${revision}</version>
<description>
Forge lets you play the card game Magic: The Gathering against a computer opponent using all of the rules.
@@ -26,11 +26,11 @@
<configSourceDirectory>src/main/config</configSourceDirectory>
<maven.compiler.release>17</maven.compiler.release>
<!-- version code - maj.min.rev ie 2.0.00 -->
<versionCode>2.0.03</versionCode>
<versionCode>2.0.04</versionCode>
<!-- set snapshotName to blank for release -->
<snapshotName>-SNAPSHOT</snapshotName>
<!-- revision will be the global version string -->
<revision>2.0.03-SNAPSHOT</revision>
<revision>${versionCode}${snapshotName}</revision>
</properties>
<licenses>
@@ -332,6 +332,31 @@
</execution>
</executions>
</plugin>
<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>
</plugins>
</build>