jmongard / Git.SemVersioning.Gradle

Gradle plugin for automatically versioning a project using semantic versioning and conventional commits with change log support based on git commit messages.
https://plugins.gradle.org/plugin/com.github.jmongard.git-semver-plugin
Apache License 2.0
38 stars 4 forks source link

Move public ChangeLogFormat constants into the companion object #40

Closed sschuberth closed 8 months ago

sschuberth commented 8 months ago

HEADER is a pretty much generic term that would pollute the namespace if imported by Gradle projects to customize the header. Move these constants into the companion object to be able to use e.g.

ChangeLogFormat.defaultHeaderTexts[ChangeLogFormat.HEADER] = ""

instead of

ChangeLogFormat.defaultHeaderTexts[HEADER] = ""