mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-21 03:10:54 -04:00
Fix issue causing lesser version parts not getting reset to 0 when bumping versions.
This commit is contained in:
parent
acffa92f18
commit
63c0105ab0
1 changed files with 3 additions and 0 deletions
|
@ -90,6 +90,9 @@ class BumpVersionTask extends DefaultTask {
|
|||
|
||||
def split = version.split("\\.")
|
||||
split[i] = (split[i] as Integer) + 1
|
||||
for (j in (i + 1) ..< split.length) {
|
||||
split[j] = 0
|
||||
}
|
||||
def newVersion = split.join(".")
|
||||
|
||||
println "${p.name}: $version -> $newVersion"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue