mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2026-09-24 12:56:35 +00:00
Refactor changelog property usage to simplify version mapping logic.
This commit is contained in:
@@ -37,7 +37,7 @@ intellijPlatform {
|
|||||||
|
|
||||||
val changelog = project.changelog // local variable for configuration cache compatibility
|
val changelog = project.changelog // local variable for configuration cache compatibility
|
||||||
// Get the latest available change notes from the changelog file
|
// Get the latest available change notes from the changelog file
|
||||||
changeNotes = providers.gradleProperty("pluginVersion").map { pluginVersion ->
|
changeNotes = version.map { pluginVersion ->
|
||||||
with(changelog) {
|
with(changelog) {
|
||||||
renderItem(
|
renderItem(
|
||||||
(getOrNull(pluginVersion) ?: getUnreleased())
|
(getOrNull(pluginVersion) ?: getUnreleased())
|
||||||
|
|||||||
Reference in New Issue
Block a user