Skip to content

Commit 1716f33

Browse files
committed
chore: prepare 0.1.0
1 parent f40bbec commit 1716f33

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Changelog
2+
3+
## [Unreleased]
4+
5+
### Added
6+
7+
### Changed
8+
9+
### Deprecated
10+
11+
### Removed
12+
13+
### Fixed
14+
15+
### Security
16+
17+
## [0.1.0] - 2024-09-24
18+
19+
Initial release

plugin-build/build.gradle.kts

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

34
plugins {
45
alias(libs.plugins.kotlin) apply false
56
alias(libs.plugins.pluginPublish) apply false
67
alias(libs.plugins.detekt)
78
alias(libs.plugins.versionCheck)
89
alias(libs.plugins.semver)
10+
alias(libs.plugins.changelog)
911
}
1012

1113
allprojects {
@@ -52,3 +54,17 @@ tasks.register<Detekt>("detektFormat") {
5254
tasks.wrapper {
5355
distributionType = Wrapper.DistributionType.ALL
5456
}
57+
58+
changelog {
59+
version.set(property("VERSION").toString())
60+
path.set(rootProject.file("../CHANGELOG.md").canonicalPath)
61+
header.set(provider { "[${version.get()}] - ${date()}" })
62+
headerParserRegex.set("""(\d+\.\d+.\d+)""".toRegex())
63+
itemPrefix.set("-")
64+
keepUnreleasedSection.set(true)
65+
unreleasedTerm.set("[Unreleased]")
66+
groups.set(listOf("Added", "Changed", "Deprecated", "Removed", "Fixed", "Security"))
67+
lineSeparator.set("\n")
68+
combinePreReleases.set(true)
69+
}
70+

0 commit comments

Comments
 (0)