Skip to content

Commit 6e9fc40

Browse files
author
Corneliu Dascalu
committed
Bump version to 0.5
1 parent c8d880b commit 6e9fc40

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
1+
# Description
12
Autoversion is a Gradle plugin which generates a version name and code based on the most recent git tag.
23
It's very similar to the `git describe` command:
34
- if the current commit is not a tag, the version name is `<recent-tag>.<commit-count-since-tag>-<current-commit-hash>`
45
- if the current commit is tagged, the version name is the name of the tag
56
The `code` is the number of commits on the current branch. It is intended to be used as an ever-increasing version code.
67
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.
78

8-
#Usage
9+
# Usage
910

1011
Groovy
1112
```groovy
1213
autoversion.name
14+
autoversion.vName
1315
autoversion.code
1416
autoversion.releaseCode
1517
```
1618

1719
Kotlin
1820
```kotlin
1921
project.autoversion().name
22+
project.autoversion().vName
2023
project.autoversion().code
2124
project.autoversion().releaseCode
2225
```
26+
## Release Notes
27+
### 0.5
28+
- Add "v" prefix to version name
29+
- Add "releaseCode" property

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repositories {
99
}
1010

1111
group = "com.corneliudascalu"
12-
version = "0.4"
12+
version = "0.5"
1313

1414
gradlePlugin {
1515
plugins {

0 commit comments

Comments
 (0)