diff --git a/build.gradle.kts b/build.gradle.kts index a70c5b6..5454ba7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,9 +4,11 @@ plugins { id("java") id("org.jetbrains.kotlin.jvm") version "1.9.22" id("org.jetbrains.intellij") version "1.17.2" + id("org.jetbrains.changelog") version "1.3.1" } group = "de.espend.idea.vuejs" +version = properties("pluginVersion") repositories { mavenCentral() @@ -22,6 +24,12 @@ intellij { plugins.set(properties("platformPlugins").split(',').map(String::trim).filter(String::isNotEmpty)) } +// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin +changelog { + version.set(properties("pluginVersion")) + groups.set(emptyList()) +} + tasks { // Set the JVM compatibility versions withType { @@ -40,6 +48,7 @@ tasks { version.set(properties("pluginVersion")) sinceBuild.set(properties("pluginSinceBuild")) untilBuild.set(properties("pluginUntilBuild")) + changeNotes.set(file("src/main/resources/META-INF/change-notes.html").readText().replace("", "").replace("", "")) } signPlugin { diff --git a/prepare-release.sh b/prepare-release.sh new file mode 100644 index 0000000..0d7c6e5 --- /dev/null +++ b/prepare-release.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +echo "" >> change-notes.html + +cp change-notes.html src/main/resources/META-INF/ + +rm change-notes.html diff --git a/src/main/resources/META-INF/change-notes.html b/src/main/resources/META-INF/change-notes.html new file mode 100644 index 0000000..20e98f2 --- /dev/null +++ b/src/main/resources/META-INF/change-notes.html @@ -0,0 +1,2 @@ +