Kevin Murphy
07/12/2024, 1:31 AMplugins {
id 'org.jetbrains.changelog' version '2.2.1'
id "me.modmuss50.mod-publish-plugin" version "0.5.2"
}
changelog has some extension methods for grabbing sections of a keep-a-changelog formatted changelog for a particular version.
I would like to use this to populate a field of a task from the mod-publish-plugin plugin, which field is also called changelog.
This appears to be a name conflict, because when I try to use the extension methods of the changelog plugin inside the publishMods task with the changelog field, Gradle thinks I am referring to the field and not the plugin.
Is there a way I can make the thing I am referring to explicit and resolve Gradle's confusion?
Gradle 8.8, using Groovy syntax.ephemient
07/12/2024, 1:43 AMproject.changelogKevin Murphy
07/12/2024, 1:58 AMKevin Murphy
07/12/2024, 2:09 AMThere's an extension registered with name 'changelog'. You should not reassign it via a property setter.
Kevin Murphy
07/12/2024, 2:54 AMKevin Murphy
07/12/2024, 2:54 AMephemient
07/12/2024, 3:03 AMpublishMods extension, not taskephemient
07/12/2024, 3:03 AMpublishMods {
changelog = project.changelog.getUnreleased().summary
}
or whatever you else you want to do with itKevin Murphy
07/12/2024, 3:15 AM