mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-11 16:26:22 +00:00
Merge pull request #8410 from rappazzo/stop-tracking-changelog
fix: move CHANGES.txt generation to target directory
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -66,6 +66,9 @@ forge-gui-mobile-dev/testAssets
|
|||||||
|
|
||||||
forge-gui/res/cardsfolder/*.bat
|
forge-gui/res/cardsfolder/*.bat
|
||||||
|
|
||||||
|
# Generated changelog file
|
||||||
|
forge-gui/release-files/CHANGES.txt
|
||||||
|
|
||||||
forge-gui/res/PerSetTrackingResults
|
forge-gui/res/PerSetTrackingResults
|
||||||
forge-gui/res/decks
|
forge-gui/res/decks
|
||||||
forge-gui/res/layouts
|
forge-gui/res/layouts
|
||||||
|
|||||||
@@ -487,7 +487,7 @@
|
|||||||
<fileset dir="${basedir}/../forge-gui/release-files/" includes="CONTRIBUTORS.txt" />
|
<fileset dir="${basedir}/../forge-gui/release-files/" includes="CONTRIBUTORS.txt" />
|
||||||
<fileset dir="${basedir}/../forge-gui/release-files/" includes="INSTALLATION.txt" />
|
<fileset dir="${basedir}/../forge-gui/release-files/" includes="INSTALLATION.txt" />
|
||||||
<fileset dir="${basedir}/../forge-gui/release-files/" includes="ISSUES.txt" />
|
<fileset dir="${basedir}/../forge-gui/release-files/" includes="ISSUES.txt" />
|
||||||
<fileset dir="${basedir}/../forge-gui/release-files/" includes="CHANGES.txt" />
|
<fileset dir="${basedir}/../forge-gui-desktop/target/" includes="CHANGES.txt" />
|
||||||
<fileset dir="${basedir}/../forge-gui/release-files/" includes="GAMEPAD_README.txt" />
|
<fileset dir="${basedir}/../forge-gui/release-files/" includes="GAMEPAD_README.txt" />
|
||||||
<fileset dir="${basedir}/../forge-gui/" includes="MANUAL.txt" />
|
<fileset dir="${basedir}/../forge-gui/" includes="MANUAL.txt" />
|
||||||
<fileset dir="${basedir}/../forge-gui-mobile-dev/" includes="sentry.properties" />
|
<fileset dir="${basedir}/../forge-gui-mobile-dev/" includes="sentry.properties" />
|
||||||
|
|||||||
@@ -35,7 +35,6 @@
|
|||||||
<goal>timestamp-property</goal>
|
<goal>timestamp-property</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- generate MonthDate code to month.date property -->
|
|
||||||
<name>month.date</name>
|
<name>month.date</name>
|
||||||
<pattern>MM.dd</pattern>
|
<pattern>MM.dd</pattern>
|
||||||
</configuration>
|
</configuration>
|
||||||
@@ -47,7 +46,6 @@
|
|||||||
<goal>regex-property</goal>
|
<goal>regex-property</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- generate versionName from revision property to snapshot-version property -->
|
|
||||||
<name>snapshot-version</name>
|
<name>snapshot-version</name>
|
||||||
<value>${revision}</value>
|
<value>${revision}</value>
|
||||||
<regex>-SNAPSHOT</regex>
|
<regex>-SNAPSHOT</regex>
|
||||||
@@ -208,6 +206,46 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.gmaven</groupId>
|
||||||
|
<artifactId>groovy-maven-plugin</artifactId>
|
||||||
|
<version>2.1.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>get-changelog-from-tag</id>
|
||||||
|
<phase>initialize</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>execute</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<source>
|
||||||
|
<![CDATA[
|
||||||
|
try {
|
||||||
|
def isOnTag = "git describe --exact-match --tags HEAD".execute().waitFor() == 0
|
||||||
|
def tagList = "git tag --sort=-version:refname".execute().text.split("\n")
|
||||||
|
.findAll { it.startsWith("forge-") }
|
||||||
|
|
||||||
|
def tag = "HEAD"
|
||||||
|
if (isOnTag && tagList.size() > 1) {
|
||||||
|
tag = tagList[1]
|
||||||
|
} else if (!isOnTag && tagList.size() > 0) {
|
||||||
|
tag = tagList[0]
|
||||||
|
}
|
||||||
|
|
||||||
|
project.properties['changelog.from.tag'] = tag
|
||||||
|
println "Using changelog from tag: ${tag}"
|
||||||
|
} catch (Exception e) {
|
||||||
|
project.properties['changelog.from.tag'] = "HEAD"
|
||||||
|
println "Using changelog from tag: HEAD (fallback)"
|
||||||
|
}
|
||||||
|
]]>
|
||||||
|
</source>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>se.bjurr.gitchangelog</groupId>
|
<groupId>se.bjurr.gitchangelog</groupId>
|
||||||
<artifactId>git-changelog-maven-plugin</artifactId>
|
<artifactId>git-changelog-maven-plugin</artifactId>
|
||||||
@@ -220,9 +258,9 @@
|
|||||||
<goal>git-changelog</goal>
|
<goal>git-changelog</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- TODO: insert placeholder for latest version tag -->
|
<!-- Generate changelog from the appropriate tag -->
|
||||||
<fromRef>forge-1.6.65</fromRef>
|
<fromRef>refs/tags/${changelog.from.tag}</fromRef>
|
||||||
<file>../forge-gui/release-files/CHANGES.txt</file>
|
<file>${project.build.directory}/CHANGES.txt</file>
|
||||||
<templateContent>
|
<templateContent>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
{{#tags}}
|
{{#tags}}
|
||||||
@@ -488,7 +526,7 @@
|
|||||||
<mkdir dir="${project.build.directory}/${project.build.finalName}-osx" />
|
<mkdir dir="${project.build.directory}/${project.build.finalName}-osx" />
|
||||||
<copy todir="${project.build.directory}/${project.build.finalName}-osx">
|
<copy todir="${project.build.directory}/${project.build.finalName}-osx">
|
||||||
<fileset dir="${basedir}/../forge-gui/" includes="LICENSE.txt" />
|
<fileset dir="${basedir}/../forge-gui/" includes="LICENSE.txt" />
|
||||||
<fileset dir="${basedir}/../forge-gui/release-files/" includes="CHANGES.txt" />
|
<fileset dir="${basedir}/../forge-gui-desktop/target/" includes="CHANGES.txt" />
|
||||||
<fileset dir="${basedir}/../forge-gui/release-files/" includes="CONTRIBUTORS.txt" />
|
<fileset dir="${basedir}/../forge-gui/release-files/" includes="CONTRIBUTORS.txt" />
|
||||||
<fileset dir="${basedir}/../forge-gui/release-files/" includes="ISSUES.txt" />
|
<fileset dir="${basedir}/../forge-gui/release-files/" includes="ISSUES.txt" />
|
||||||
<fileset dir="${basedir}/../forge-gui/release-files/" includes="INSTALLATION.txt" />
|
<fileset dir="${basedir}/../forge-gui/release-files/" includes="INSTALLATION.txt" />
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
- Bug fixes -
|
|
||||||
As always, this release of Forge features an assortment of bug fixes and improvements based on user feedback during the previous release run.
|
|
||||||
@@ -171,7 +171,7 @@
|
|||||||
<fileset dir="${basedir}/../forge-gui/release-files/" includes="INSTALLATION.txt" />
|
<fileset dir="${basedir}/../forge-gui/release-files/" includes="INSTALLATION.txt" />
|
||||||
<fileset dir="${basedir}/../forge-gui/release-files/" includes="GAMEPAD_README.txt" />
|
<fileset dir="${basedir}/../forge-gui/release-files/" includes="GAMEPAD_README.txt" />
|
||||||
<fileset dir="${basedir}/../forge-gui/release-files/" includes="ISSUES.txt" />
|
<fileset dir="${basedir}/../forge-gui/release-files/" includes="ISSUES.txt" />
|
||||||
<fileset dir="${basedir}/../forge-gui/release-files/" includes="CHANGES.txt" />
|
<fileset dir="${basedir}/../forge-gui-desktop/target/" includes="CHANGES.txt" />
|
||||||
<fileset dir="${basedir}/../forge-gui/">
|
<fileset dir="${basedir}/../forge-gui/">
|
||||||
<include name="res/**" />
|
<include name="res/**" />
|
||||||
<exclude name="res/cardsfolder/**" />
|
<exclude name="res/cardsfolder/**" />
|
||||||
|
|||||||
1
pom.xml
1
pom.xml
@@ -202,7 +202,6 @@
|
|||||||
<allowTimestampedSnapshots>true</allowTimestampedSnapshots>
|
<allowTimestampedSnapshots>true</allowTimestampedSnapshots>
|
||||||
<checkModificationExcludes>
|
<checkModificationExcludes>
|
||||||
<checkModificationExclude>.mvn/local-settings.xml</checkModificationExclude>
|
<checkModificationExclude>.mvn/local-settings.xml</checkModificationExclude>
|
||||||
<checkModificationExclude>forge-gui/release-files/CHANGES.txt</checkModificationExclude>
|
|
||||||
</checkModificationExcludes>
|
</checkModificationExcludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|||||||
Reference in New Issue
Block a user