Conventional commit strategy for Git sensitive Semantic Versioning (SemVer) Gradle Plugin
November 13, 2023 ยท View on GitHub
This library provides a conventional commit strategy for the Git sensitive Semantic Versioning (SemVer) Gradle Plugin
Usage
Add the following to your build.gradle.kts:
import io.github.andreabrighi.gradle.gitsemver.conventionalcommit.ConventionalCommit
...
buildscript {
dependencies {
classpath("io.github.andreabrighi:conventional-commit-strategy-for-git-sensitive-semantic-versioning-gradle-plugin:1.0.0")
}
}
...
gitSemVer {
...
commitNameBasedUpdateStrategy(ConventionalCommit::semanticVersionUpdate)
}
Supported commit types
The following commit types are supported:
fix: will trigger a patch version updatefeat: will trigger a minor version updateperf: will trigger a minor version updateBREAKING CHANGE: will trigger a major version update*!: will trigger a major version update*: will trigger a none version update