Skip to content

Commit

Permalink
fixed write change log in plugin.xml with changelog-2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zengkid committed Jun 29, 2024
1 parent c95b079 commit cb4ea9e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<!-- Keep a Changelog guide -> https://keepachangelog.com -->
# SmartTomcat Changelog

##[4.7.4]

### Fixed
- write change log in plugin.xml

## [4.7.3]

- be able to update the server.xml under the <project>/.smarttomcat/<module>/conf.
Expand Down
12 changes: 9 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import org.jetbrains.changelog.Changelog
import org.jetbrains.changelog.markdownToHTML

fun prop(key: String) = project.findProperty(key).toString()
Expand Down Expand Up @@ -31,6 +32,7 @@ intellij {
// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
changelog {
version.set(prop("pluginVersion"))
keepUnreleasedSection.set(false)
groups.set(emptyList())
}

Expand Down Expand Up @@ -71,9 +73,13 @@ tasks {

// Get the latest available change notes from the changelog file
changeNotes.set(provider {
changelog.run {
getOrNull(prop("pluginVersion")) ?: getLatest()
}.toHTML()
changelog.renderItem(
changelog
.getLatest()
.withHeader(true)
.withEmptySections(false),
Changelog.OutputType.HTML
)
})
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Duser.language=en -Duser.country=US

pluginName = SmartTomcat
pluginGroup = com.poratu.idea.plugins.tomcat
pluginVersion = 4.7.3
pluginVersion = 4.7.4

pluginSinceBuild = 193.5233.102
pluginUntilBuild=
Expand Down

0 comments on commit cb4ea9e

Please sign in to comment.