This library provides a conventional commit strategy for the Git sensitive Semantic Versioning (SemVer) Gradle Plugin
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)
}
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