Refactor changelog property usage to simplify version mapping logic.

This commit is contained in:
Jakub Chrzanowski
2026-04-13 20:49:59 +02:00
parent c4a85898dc
commit 979fc454b7

View File

@@ -37,7 +37,7 @@ intellijPlatform {
val changelog = project.changelog // local variable for configuration cache compatibility
// Get the latest available change notes from the changelog file
changeNotes = providers.gradleProperty("pluginVersion").map { pluginVersion ->
changeNotes = version.map { pluginVersion ->
with(changelog) {
renderItem(
(getOrNull(pluginVersion) ?: getUnreleased())