Use semantic version for fabric

This commit is contained in:
Aurora Lahtela 2023-10-15 17:19:06 +03:00
parent fe59fa5a66
commit 1f485cfbe5
2 changed files with 3 additions and 2 deletions

View File

@ -42,6 +42,7 @@ allprojects {
ext.minorVersion = '6'
ext.buildVersion = buildVersion
ext.fullVersion = project.ext.majorVersion + '.' + project.ext.minorVersion + ' build ' + project.ext.buildVersion
ext.fullVersionSemantic = project.ext.majorVersion + '.' + project.ext.minorVersion + '+build.' + project.ext.buildVersion
// Fix for UTF-8 files showing with wrong encoding when compiled on Windows machines.
compileJava { options.encoding = "UTF-8" }
@ -49,7 +50,7 @@ allprojects {
javadoc { options.encoding = 'UTF-8' }
}
logger.lifecycle("Building artifact for version $fullVersion")
logger.lifecycle("Building artifact for version $fullVersion / $fullVersionSemantic")
subprojects {
// Build plugins

View File

@ -43,7 +43,7 @@ processResources {
inputs.property "version", project.ext.fullVersion
filesMatching("fabric.mod.json") {
expand "version": project.ext.fullVersion
expand "version": project.ext.fullVersionSemantic
}
}