Skip to content

Commit 8a8d84c

Browse files
committed
build: configure changelog plugin
1 parent fb9e2da commit 8a8d84c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import io.gitlab.arturbosch.detekt.extensions.DetektExtension
2+
import org.jetbrains.changelog.date
23

34
// Top-level build file where you can add configuration options common to all sub-projects/modules.
45
plugins {
@@ -40,4 +41,14 @@ spotless {
4041
)
4142
)
4243
}
44+
}
45+
46+
changelog {
47+
path.set(file("CHANGELOG.md").canonicalPath)
48+
header.set(provider { "[${version.get()}] - ${date()}" })
49+
headerParserRegex.set("""(\d+\.\d+)""".toRegex())
50+
keepUnreleasedSection.set(true)
51+
unreleasedTerm.set("[Unreleased]")
52+
groups.set(listOf("Added", "Changed", "Deprecated", "Removed", "Fixed", "Security"))
53+
lineSeparator.set("\n")
4354
}

0 commit comments

Comments
 (0)