add dev build number to modver ingame

This commit is contained in:
maggi373 committed 2023-02-20 19:39:43 +01:00
1 parent 1d671e7594
commit ea768f3223
1 file changed
+11 -7
+11 -7
View File
@@ -61,7 +61,11 @@ dependencies {
compile "mcp.mobius.waila:Waila:1.5.10_1.7.10:dev"
}
version = "${config.minecraft_version}-${config.mod_version}"
if (System.getenv("BUILD_VER") == null){
version = "${config.minecraft_version}-${config.mod_version}"
} else {
version = "${config.minecraft_version}-${config.mod_version}" + System.getenv("BUILD_VER")
}
group= "mekanism"
archivesBaseName = "Mekanism-Community-Edition"
libsDirName = "../output"
@@ -74,7 +78,11 @@ minecraft {
replaceIn "mekanism/common/Mekanism.java"
replaceIn "mekanism/generators/common/MekanismGenerators.java"
replaceIn "mekanism/tools/common/MekanismTools.java"
replace "GRADLE_MODVERSION", config.mod_version
if (System.getenv("BUILD_VER") == null){
replace "GRADLE_MODVERSION", config.mod_version
} else {
replace "GRADLE_MODVERSION", config.mod_version + System.getenv("BUILD_VER")
}
replace "GRADLE_VERSIONMOD", config.alt_version
}
@@ -203,11 +211,7 @@ publishing {
mavenJava(MavenPublication) {
artifactId = project.archivesBaseName
groupId = project.group
if (System.getenv("BUILD_VER") == null){
version = project.version
} else {
version = project.version + System.getenv("BUILD_VER")
}
version = project.version
artifacts = [toolsJar, coreJar, generatorsJar, MDKZip, alltJar, apiJar]
components.java.withVariantsFromConfiguration(configurations.runtimeElements) {
skip()