Skip to content

Commit

Permalink
prepare release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Haehnchen committed Feb 27, 2024
1 parent 856b5b5 commit ab74382
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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<JavaCompile> {
Expand All @@ -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("<html>", "").replace("</html>", ""))
}

signPlugin {
Expand Down
9 changes: 9 additions & 0 deletions prepare-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

echo "<html><ul>" > change-notes.html
git log `git describe --tags --abbrev=0`..HEAD --no-merges --oneline --pretty=format:"<li>%h %s (%an)</li>" >> change-notes.html
echo "</ul></html>" >> change-notes.html

cp change-notes.html src/main/resources/META-INF/

rm change-notes.html
2 changes: 2 additions & 0 deletions src/main/resources/META-INF/change-notes.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<html><ul>
</ul></html>

0 comments on commit ab74382

Please sign in to comment.