Open iChun opened 5 months ago
Hmm good point.
I'm thinking for this, maybe I can change the additional file method, to either take in just a file, or an Object, which would allow overriding the file display name and changelog.
If those properties are not defined, it will just fall back to the globally defined ones
Implemented with 2.0.3
// Additional files to upload with a custom display name and changelog.
// Currently only supported on Curseforge
addAdditionalFile {
// File, Task or String
artifact jar
displayName "Some Name"
changelog "Hello Changelog"
}
Kotlin DSL
// Additional files to upload with a custom display name and changelog.
// Currently supports CurseForge only
addAdditionalFile {
// File, Task or String
artifact(tasks.jar)
displayName("Test Name")
changelog("Some Changelog")
}
I've seen from trial and from poking around in the code that the changelog for additional files are taken from the parent file. Would appreciate a way to set a different changelog to said additional files.
Thank you!
EDIT: I suppose this could also potentially be extended to file display names as well