From deeb262010a99191d43537f84fcc5626d6805f41 Mon Sep 17 00:00:00 2001 From: Maksim Kurnikov Date: Sat, 8 Jun 2024 15:31:10 +0300 Subject: [PATCH] add changelog to plugin.xml --- build.gradle.kts | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 28e06427e..475e83d25 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -133,23 +133,6 @@ allprojects { } tasks { - patchPluginXml { - version.set(pluginVersion) -// if (publishingChannel == "default") { -// changeNotes.set( -// """ -// -//

-// Changelog for Intellij-Move $pluginVersion on Github -//

-// -// """ -// ) -// } - sinceBuild.set(prop("pluginSinceBuild")) - untilBuild.set(prop("pluginUntilBuild")) - } - withType { kotlinOptions { jvmTarget = "17" @@ -251,6 +234,24 @@ project(":plugin") { } tasks { + patchPluginXml { + version.set(pluginVersion) + if (publishingChannel == "default") { + val codeVersionForUrl = codeVersion.replace('.', '-') + changeNotes.set( + """ + +

+ Changelog for the Intellij-Move $pluginVersion +

+ + """ + ) + } + sinceBuild.set(prop("pluginSinceBuild")) + untilBuild.set(prop("pluginUntilBuild")) + } + ideaModule { enabled = false }