Commit a907334
authored
build: derive version from Git tag via axion-release plugin (#50)
* build: derive version from Git tag via axion-release plugin
Replace hardcoded version = '0.1.0' with scmVersion.version from the
pl.allegro.tech.build.axion-release plugin. Tag prefix is set to empty
string to match existing plain-semver tags (e.g. 0.1.1, not v0.1.1).
On a tagged commit the version resolves to the exact tag; on subsequent
commits it becomes a SNAPSHOT (e.g. 0.1.2-SNAPSHOT), removing the need
to manually update build.gradle before each release.
Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
* build: use simple versionCreator to avoid branch name in snapshot version
Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
---------
Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>1 parent 21ffe7e commit a907334
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
7 | 15 | | |
8 | 16 | | |
9 | 17 | | |
10 | | - | |
| 18 | + | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
| |||
0 commit comments