Skip to content

Commit 0d2afc2

Browse files
committed
Removing deprecated methods from Changelog
1 parent f1684df commit 0d2afc2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build.gradle.kts

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import org.jetbrains.changelog.Changelog
12
import org.jetbrains.changelog.markdownToHTML
23

34
fun properties(key: String) = project.findProperty(key).toString()
@@ -114,8 +115,11 @@ tasks {
114115
// Get the latest available change notes from the changelog file
115116
changeNotes.set(provider {
116117
changelog.run {
117-
getOrNull(properties("pluginVersion")) ?: getLatest()
118-
}.toHTML()
118+
renderItem(
119+
getOrNull(properties("pluginVersion")) ?: getLatest(),
120+
Changelog.OutputType.HTML
121+
)
122+
}
119123
})
120124
}
121125

0 commit comments

Comments
 (0)