diff --git a/CHANGELOG.md b/CHANGELOG.md index 774aa13..dd33e8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,6 @@ ## Unreleased -## 0.2.0 - 2024-02-28 - ### Added - `.typeql` to supported extensions. diff --git a/build.gradle.kts b/build.gradle.kts index 55a80a8..e88e497 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,4 +1,5 @@ import org.jetbrains.changelog.markdownToHTML +import org.jetbrains.changelog.Changelog import org.jetbrains.kotlin.gradle.tasks.KotlinCompile fun properties(key: String) = project.findProperty(key).toString() @@ -42,7 +43,7 @@ intellij { // Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin changelog { - version.set(properties("pluginVersion")) + header.set(provider { version.get() }) groups.set(emptyList()) } @@ -89,9 +90,13 @@ tasks { // Get the latest available change notes from the changelog file changeNotes.set(provider { - changelog.run { - getOrNull(properties("pluginVersion")) ?: getLatest() - }.toHTML() + changelog.renderItem( + changelog + .getUnreleased() + .withHeader(false) + .withEmptySections(false), + Changelog.OutputType.HTML + ) }) }