Skip to content

Commit

Permalink
build: Fix snapshot build versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed May 23, 2024
1 parent f0d36b8 commit 32702c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildSrc/src/main/groovy/multiloader-common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

base {
archivesName = "${mod_id}-${project.name}"
version = "${version}+${minecraft_version}"
version = project.version + (!project.version.endsWith("SNAPSHOT") ? "+" + minecraft_version : "")
}

java {
Expand Down Expand Up @@ -107,7 +107,7 @@ processResources {
publishing {
publications {
register('mavenJava', MavenPublication) {
version = project.version + (!project.version.endsWith("SNAPSHOT") ? "+" + minecraft_version : "")
version = project.version
artifactId base.archivesName.get()
from components.java
}
Expand Down

0 comments on commit 32702c8

Please sign in to comment.