Skip to content

Commit

Permalink
chore: prepare to release
Browse files Browse the repository at this point in the history
  • Loading branch information
iromeo committed Apr 8, 2023
1 parent 6f956fb commit 5f02082
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# SnakeCharm Plugin Changelog

## [Unreleased]
## [2023.1.SNAPSHOT]
Released on ...

### Fixed
Expand Down
25 changes: 20 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,27 @@ intellij {
// Read more: https://github.com/JetBrains/gradle-changelog-plugin
// Configuration: https://github.com/JetBrains/gradle-changelog-plugin#configuration
changelog {
// Helps to organize content in CHANGLOG.md. Could generate change notes from it.

version.set(project.version.toString())
groups.set(listOf("Added", "Changed", "Deprecated", "Removed", "Fixed", "Security"))
header.set(provider { "[${version.get()}] - ${date()}" })
itemPrefix.set("-")
keepUnreleasedSection.set(true)
unreleasedTerm.set("[Unreleased]")
headerParserRegex.set("""(\d+\.\d+.(\d+|SNAPSHOT)(-\w+)?)""".toRegex())

// Optionally generate changed commits list url.
// NB: At the moment url title will be same as current version in changelog and in our case it is with 'SNAPSHOT'
// tag instead of real build number => title will be not very nice-looking
//repositoryUrl.set("https://github.com/JetBrains-Research/snakecharm") // url to compare commits beetween previous and current release
//sectionUrlBuilder.set(ChangelogSectionUrlBuilder { repositoryUrl, currentVersion, previousVersion, isUnreleased ->
// "${repositoryUrl}/compare/v${previousVersion}...v${version.get()}"
//})

// default values:
// combinePreReleases.set(true) // default; Combines pre-releases (like 1.0.0-alpha, 1.0.0-beta.2) into the final release note when patching.
// header.set(provider { "[${version.get()}] - ${date()}" })
// groups.set(listOf("Added", "Changed", "Deprecated", "Removed", "Fixed", "Security"))
// itemPrefix.set("-") // default
// path.set(file("CHANGELOG.md").canonicalPath) // default value
// keepUnreleasedSection.set(true) // default
// unreleasedTerm.set("[Unreleased]") // default
}


Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pluginName = snakecharm
# * {pluginPreReleaseSuffix}: Use empty string [..=] for release, for eap: [..=-eap] or [..=-eap.2]
pluginVersion = 2023.1
pluginPreReleaseSuffix=-eap
#pluginPreReleaseSuffix=
# Project build counter from CI. Can be overridden during build using `./gradlew -PbuildCounter=nnnn my_task_name`
pluginBuildCounter=SNAPSHOT

Expand Down

0 comments on commit 5f02082

Please sign in to comment.