Fix use of relative paths for changelog

This commit is contained in:
embeddedt 2023-08-31 11:49:15 -04:00
parent e94f1481ae
commit 7d9f110f27
No known key found for this signature in database
GPG Key ID: A69433EC199B5613
2 changed files with 3 additions and 3 deletions

View File

@ -50,8 +50,8 @@ tasks.register('generateChangelog', se.bjurr.gitchangelog.plugin.gradle.GitChang
fromRef = theVersionRef fromRef = theVersionRef
file = new File("CHANGELOG.md"); file = new File("${rootDir}/CHANGELOG.md");
templateContent = new File('gradle/changelog.mustache').getText('UTF-8').replace("[[modernFixVersionRef]]", theVersionRef); templateContent = new File("${rootDir}/gradle/changelog.mustache").getText('UTF-8').replace("[[modernFixVersionRef]]", theVersionRef);
toCommit = "HEAD"; toCommit = "HEAD";
} }

View File

@ -40,7 +40,7 @@ curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN") apiKey = System.getenv("CURSEFORGE_TOKEN")
project { project {
id = "790626" id = "790626"
changelog = file('../CHANGELOG.md') changelog = file("${rootDir}/CHANGELOG.md")
changelogType = "markdown" changelogType = "markdown"
releaseType = isBeta ? "beta" : "release" releaseType = isBeta ? "beta" : "release"
addGameVersion project.name.capitalize() addGameVersion project.name.capitalize()