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
file = new File("CHANGELOG.md");
templateContent = new File('gradle/changelog.mustache').getText('UTF-8').replace("[[modernFixVersionRef]]", theVersionRef);
file = new File("${rootDir}/CHANGELOG.md");
templateContent = new File("${rootDir}/gradle/changelog.mustache").getText('UTF-8').replace("[[modernFixVersionRef]]", theVersionRef);
toCommit = "HEAD";
}

View File

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