Restore flatten library

This commit is contained in:
Chris H
2025-02-15 16:23:22 -05:00
parent 2f33c24414
commit 44fca5ee5e
13 changed files with 46 additions and 21 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

31
pom.xml
View File

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