Skip to content

arthurstrokov/git-release-plugin

Repository files navigation

git-release-plugin

Using the plugins DSL

plugins {
id "io.github.arthurstrokov.gitReleasePlugin" version "1.2"
}

https://plugins.gradle.org/plugin/io.github.arthurstrokov.gitReleasePlugin

Plugin for creating git tag for release control

Create Git Tag: $ git tag <tag_name>

git tag example: v1.0 where '1' is Major and '0' is Minor versions respectively

'updateMajorReleaseTag' task updates Major by incrementing the value by one regardless of which git branch is current and push changes to git

'updateMinorReleaseTag' task updates Minor by incrementing the value by one regardless of which git branch is current and push changes to git

'updateReleaseTag' task updates Major or Minor depending on whether such a branch is considered the main and push changes to git

Default name of main branch is 'master'

You can set any name for branch which do you consider the main using 'setPluginMajorBranch' task

Also, you can check name for main branch using 'getPluginMajorBranch' task

DeepSource

Codacy Badge