Update flatten to work with full release

This commit is contained in:
Chris H
2025-06-04 21:33:21 -04:00
parent 3ec480afa4
commit 51929434be
3 changed files with 28 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ jobs:
export _JAVA_OPTIONS="-Xmx2g"
d=$(date +%m.%d)
# build only desktop and only try to move desktop files
mvn -U -B clean -P windows-linux install -e -T 1C release:clean release:prepare release:perform -DskipTests
mvn -U -B clean -P windows-linux install -DskipTests -Dskip.flatten=true -e -T 1C release:clean release:prepare release:perform
mkdir izpack
# move bz2 and jar from work dir to izpack dir
mv /home/runner/work/forge/forge/forge-installer/*/*.{bz2,jar} izpack/

View File

@@ -297,5 +297,31 @@
</plugins>
</build>
</profile>
<profile>
<id>no-flatten</id>
<activation>
<property>
<name>skip.flatten</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<executions>
<execution>
<id>flatten</id>
<phase>none</phase>
</execution>
<execution>
<id>flatten.clean</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

View File

@@ -343,7 +343,7 @@
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<phase>deploy</phase>
<goals>
<goal>flatten</goal>
</goals>