Skip to content

Commit 7d9f110

Browse files
committed
Fix use of relative paths for changelog
1 parent e94f148 commit 7d9f110

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ tasks.register('generateChangelog', se.bjurr.gitchangelog.plugin.gradle.GitChang
5050

5151
fromRef = theVersionRef
5252

53-
file = new File("CHANGELOG.md");
54-
templateContent = new File('gradle/changelog.mustache').getText('UTF-8').replace("[[modernFixVersionRef]]", theVersionRef);
53+
file = new File("${rootDir}/CHANGELOG.md");
54+
templateContent = new File("${rootDir}/gradle/changelog.mustache").getText('UTF-8').replace("[[modernFixVersionRef]]", theVersionRef);
5555
toCommit = "HEAD";
5656
}
5757

buildSrc/src/main/groovy/modernfix.platform-conventions.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ curseforge {
4040
apiKey = System.getenv("CURSEFORGE_TOKEN")
4141
project {
4242
id = "790626"
43-
changelog = file('../CHANGELOG.md')
43+
changelog = file("${rootDir}/CHANGELOG.md")
4444
changelogType = "markdown"
4545
releaseType = isBeta ? "beta" : "release"
4646
addGameVersion project.name.capitalize()

0 commit comments

Comments
 (0)