From d2279d0c2c215c7c91f4f16610748dddaf8e5e61 Mon Sep 17 00:00:00 2001 From: wilinz Date: Wed, 3 Aug 2022 20:30:03 +0800 Subject: [PATCH] update version --- CHANGELOG.md | 5 +++++ build.gradle.kts | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..5956180 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +# GlobalizationTranslator Plugin Changelog + +## 1.0.2 (2022/08/3) +- Fix xml escape character bug +- Update document \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 56a3d10..c92f5e2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,4 +1,5 @@ import org.commonmark.renderer.html.HtmlRenderer +import org.jetbrains.changelog.date import org.commonmark.parser.Parser as MarkdownParser import java.io.Reader @@ -8,10 +9,11 @@ plugins { kotlin("jvm") id("org.jetbrains.compose") id("idea") + id("org.jetbrains.changelog") version "1.3.1" } group = "com.wilinz.globalization" -version = "1.0.1" +version = "1.0.2" repositories { mavenCentral() @@ -63,6 +65,7 @@ tasks { sinceBuild.set("203") untilBuild.set("") pluginDescription.set(getDescription("description.md")) + changeNotes.set(provider { changelog.getLatest().toHTML() }) } } @@ -77,4 +80,14 @@ fun markdownToHtml(reader: Reader): String { val document = parser.parseReader(reader) val renderer = HtmlRenderer.builder().build() return renderer.render(document) +} + +changelog { + version.set(project.version.toString()) + path.set("${project.projectDir}/CHANGELOG.md") + header.set(provider { "[${version.get()}] - ${date()}" }) + itemPrefix.set("-") + keepUnreleasedSection.set(true) + unreleasedTerm.set("[Unreleased]") + groups.set(listOf("Added", "Changed", "Deprecated", "Removed", "Fixed", "Security")) } \ No newline at end of file