fix: Remove getLatest() from changeNotes in patchPluginXml task. (#340)

Co-authored-by: Jakub Chrzanowski <jakub.chrzanowski@jetbrains.com>
This commit is contained in:
Jakob Maležič 2023-02-24 14:07:20 +01:00 committed by Jakub Chrzanowski
parent c9194ab884
commit 98fab2786f

View File

@ -89,8 +89,9 @@ tasks {
changeNotes.set(properties("pluginVersion").map { pluginVersion -> changeNotes.set(properties("pluginVersion").map { pluginVersion ->
with(changelog) { with(changelog) {
renderItem( renderItem(
getOrNull(pluginVersion) (getOrNull(pluginVersion) ?: getUnreleased())
?: runCatching { getLatest() }.getOrElse { getUnreleased() }, .withHeader(false)
.withEmptySections(false),
Changelog.OutputType.HTML, Changelog.OutputType.HTML,
) )
} }