File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ allprojects {
3939 def dirtyMarker = grgit. status(). clean ? " " : " .dirty"
4040 def commitHashMarker = details. commitDistance > 0 ? (" ." + details. gitHash) : " "
4141 def preMarker = (details. commitDistance > 0 || ! details. isCleanTag) ? (" -beta." + details. commitDistance) : " "
42+ if (preMarker. length() > 0 ) {
43+ // bump to next patch release
44+ def versionParts = baseVersion. tokenize(" ." )
45+ baseVersion = " ${ versionParts[0]} .${ versionParts[1]} .${ versionParts[2].toInteger() + 1} "
46+ }
4247 def versionString = " ${ baseVersion}${ preMarker} +mc${ minecraft_version}${ commitHashMarker}${ dirtyMarker} "
4348 version = versionString
4449 archivesBaseName = rootProject. archives_base_name + ' -' + project. name
@@ -230,4 +235,6 @@ configure(subprojects.findAll {it.name == "forge" || it.name == "fabric"}) {
230235 publishToModSites. dependsOn(tasks. modrinth)
231236 publishToModSites. dependsOn(tasks. curseforge)
232237 }
233- }
238+ }
239+
240+ println " ModernFix: " + version
You can’t perform that action at this time.
0 commit comments