Commit be2b10e 1 parent 49748c5 commit be2b10e Copy full SHA for be2b10e
File tree 3 files changed +8
-13
lines changed
3 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -86,18 +86,13 @@ allprojects {
86
86
archivesBaseName = archives_base_name
87
87
group = maven_group
88
88
89
- if (System . getenv(" RELEASE_BUILD" )) {
90
- version = " ${ mod_version} +${ project.name} -mc${ minecraft_version} "
91
- } else {
92
- // Formats the mod version to include the loader, Minecraft version, and build number (if present)
93
- // example: 1.0.0+fabric-1.18.2-100
94
- String buildNumber = System . getenv(" GITHUB_RUN_NUMBER" )
95
- version = " ${ mod_version} +${ project.name} -mc${ minecraft_version} " + (buildNumber != null ? " -build.${ buildNumber} " : " " )
96
- }
97
-
89
+ // Formats the mod version to include the loader, Minecraft version, and build number (if present)
90
+ // example: 1.0.0+fabric-1.19.2-build.100 (or -local)
91
+ String isRelease = System . getenv(" RELEASE_BUILD" )
92
+ String buildNumber = System . getenv(" GITHUB_RUN_NUMBER" )
93
+ String build = buildNumber ? " build.${ buildNumber} " : " local"
98
94
99
- repositories {
100
- }
95
+ version = " $mod_version +$project . name -mc$minecraft_version " + (isRelease ? " " : " -$build " )
101
96
102
97
tasks. withType(JavaCompile ). configureEach {
103
98
options. encoding = " UTF-8"
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ components.java {
240
240
241
241
publishMods {
242
242
file = remapJar. archiveFile
243
- version = " $mod_version - fabric-mc$minecraft_version "
243
+ version = " $mod_version + fabric-mc$minecraft_version "
244
244
changelog = getChangelogText()
245
245
type = STABLE
246
246
displayName = " Steam 'n' Rails $mod_version Fabric $minecraft_version "
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ components.java {
239
239
240
240
publishMods {
241
241
file = remapJar. archiveFile
242
- version = " $mod_version - forge-mc$minecraft_version "
242
+ version = " $mod_version + forge-mc$minecraft_version "
243
243
changelog = getChangelogText()
244
244
type = STABLE
245
245
displayName = " Steam 'n' Rails $mod_version Forge $minecraft_version "
You can’t perform that action at this time.
0 commit comments