Skip to content

Commit

Permalink
Remove CI build numbers from version
Browse files Browse the repository at this point in the history
  • Loading branch information
DrexHD committed Sep 30, 2024
1 parent f80f940 commit 8aa01b5
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ allprojects {

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

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

fun getVersionMetadata(): String {
val buildId = System.getenv("GITHUB_RUN_NUMBER")

// CI builds only
if (buildId != null) {
return "+build.$buildId"
}

// No tracking information could be found about the build
return ""
}

private fun fetchChangelog(): String {
val changelog = tasks.getChangelog.get().changelog.get()
val modVersion: String by project
Expand Down

0 comments on commit 8aa01b5

Please sign in to comment.