Skip to content

Commit 8aa01b5

Browse files
committed
Remove CI build numbers from version
1 parent f80f940 commit 8aa01b5

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

build.gradle.kts

+1-13
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ allprojects {
2323

2424
base.archivesName.set(modId)
2525
group = mavenGroup
26-
version = "$modVersion+${rootProject.libs.versions.minecraft.get()}${getVersionMetadata()}"
26+
version = "$modVersion+${rootProject.libs.versions.minecraft.get()}"
2727

2828
java {
2929
sourceCompatibility = JavaVersion.VERSION_21
@@ -220,18 +220,6 @@ fun com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar.relocate(pattern:
220220
this.relocate(pattern, "io.github.quiltservertools.blockbotdiscord.libs.$pattern")
221221
}
222222

223-
fun getVersionMetadata(): String {
224-
val buildId = System.getenv("GITHUB_RUN_NUMBER")
225-
226-
// CI builds only
227-
if (buildId != null) {
228-
return "+build.$buildId"
229-
}
230-
231-
// No tracking information could be found about the build
232-
return ""
233-
}
234-
235223
private fun fetchChangelog(): String {
236224
val changelog = tasks.getChangelog.get().changelog.get()
237225
val modVersion: String by project

0 commit comments

Comments
 (0)