Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
wilinz committed Aug 3, 2022
1 parent 313acc4 commit d2279d0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# GlobalizationTranslator Plugin Changelog

## 1.0.2 (2022/08/3)
- Fix xml escape character bug
- Update document
15 changes: 14 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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()
Expand Down Expand Up @@ -63,6 +65,7 @@ tasks {
sinceBuild.set("203")
untilBuild.set("")
pluginDescription.set(getDescription("description.md"))
changeNotes.set(provider { changelog.getLatest().toHTML() })
}
}

Expand All @@ -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"))
}

0 comments on commit d2279d0

Please sign in to comment.