Skip to content

corneliudascalu/autoversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Autoversion is a Gradle plugin which generates a version name and code based on the most recent git tag. It's very similar to the git describe command:

  • if the current commit is not a tag, the version name is <recent-tag>.<commit-count-since-tag>-<current-commit-hash>
  • if the current commit is tagged, the version name is the name of the tag The code is the number of commits on the current branch. It is intended to be used as an ever-increasing version code. The releaseCode is the number of commits until the most recent tag. It is intended to be used as a development version code that is set to the value used by the production code.

Usage

Groovy

autoversion.name
autoversion.vName
autoversion.code
autoversion.releaseCode

Kotlin

project.autoversion().name
project.autoversion().vName
project.autoversion().code
project.autoversion().releaseCode

Release Notes

0.5

  • Add "v" prefix to version name
  • Add "releaseCode" property

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages