aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2018-05-24 17:43:35 +1000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2018-05-24 17:43:35 +1000
commitc070e4c3384f4430834f590ac37fc64bba5933a9 (patch)
treea1876c8a78a4988d0c61416e8c8311098454e05b
parentce8ae634223ac0e33998e2736073af3cd3c55db2 (diff)
downloadGT5-Unofficial-c070e4c3384f4430834f590ac37fc64bba5933a9.tar.gz
GT5-Unofficial-c070e4c3384f4430834f590ac37fc64bba5933a9.tar.bz2
GT5-Unofficial-c070e4c3384f4430834f590ac37fc64bba5933a9.zip
+ Added a new Gradle task to also build a seperate changelog for Curse. (Because I am lazy)
-rw-r--r--build.gradle9
-rw-r--r--changelogcurse.mustache18
2 files changed, 26 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index 15c3391e25..f44cf117c6 100644
--- a/build.gradle
+++ b/build.gradle
@@ -83,7 +83,13 @@ task gitChangelogTask(type: se.bjurr.gitchangelog.plugin.gradle.GitChangelogTask
toRef = "HEAD"
templateContent = file('changelog.mustache').getText('UTF-8')
}
-
+task curseChangelogTask(type: se.bjurr.gitchangelog.plugin.gradle.GitChangelogTask) {
+ file = new File("CHANGELOG Curse ${project.version}.md");
+ untaggedName = "Current Curse release ${project.version}"
+ fromCommit = "1e6bf5e889344acabacec633f7be1aabcfbf4e0e"
+ toRef = "HEAD"
+ templateContent = file('changelogcurse.mustache').getText('UTF-8')
+}
//task gitChangelogTask(type: se.bjurr.gitchangelog.plugin.gradle.GitChangelogTask) {
// file = new File("CHANGELOG.md");
// templateContent = file('changelog.mustache').getText('UTF-8');
@@ -123,6 +129,7 @@ artifacts {
}
build.finalizedBy(gitChangelogTask)
+build.finalizedBy(curseChangelogTask)
processResources {
// this will ensure that this task is redone when the versions change.
diff --git a/changelogcurse.mustache b/changelogcurse.mustache
new file mode 100644
index 0000000000..e4c3c66274
--- /dev/null
+++ b/changelogcurse.mustache
@@ -0,0 +1,18 @@
+# Generated via Git Changelog Gradle plugin for Curse/CurseForge
+<br />
+<br />
+{{#tags}}
+<br />
+{{#commits}}
+<p>
+[{{hash}}] | {{authorName}} | {{commitTime}}
+<br />
+{{{messageTitle}}}
+<br />
+{{#messageBodyItems}}
+{{.}}
+{{/messageBodyItems}}
+</p>
+ {{/commits}}
+<br />
+{{/tags}} \ No newline at end of file