Skip to content

Commit

Permalink
add changelog to plugin.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurnikov committed Jun 8, 2024
1 parent b508327 commit deeb262
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -133,23 +133,6 @@ allprojects {
}

tasks {
patchPluginXml {
version.set(pluginVersion)
// if (publishingChannel == "default") {
// changeNotes.set(
// """
// <body>
// <p><a href="https://github.com/pontem-network/intellij-move/blob/master/changelog/$pluginVersion.md">
// Changelog for Intellij-Move $pluginVersion on Github
// </a></p>
// </body>
// """
// )
// }
sinceBuild.set(prop("pluginSinceBuild"))
untilBuild.set(prop("pluginUntilBuild"))
}

withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
Expand Down Expand Up @@ -251,6 +234,24 @@ project(":plugin") {
}

tasks {
patchPluginXml {
version.set(pluginVersion)
if (publishingChannel == "default") {
val codeVersionForUrl = codeVersion.replace('.', '-')
changeNotes.set(
"""
<body>
<p><a href="https://intellij-move.github.io/$codeVersionForUrl.html">
Changelog for the Intellij-Move $pluginVersion
</a></p>
</body>
"""
)
}
sinceBuild.set(prop("pluginSinceBuild"))
untilBuild.set(prop("pluginUntilBuild"))
}

ideaModule {
enabled = false
}
Expand Down

0 comments on commit deeb262

Please sign in to comment.