diff --git a/build.gradle b/build.gradle index f7cc8a8..20e1168 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { architectury.minecraft = minecraft_version -version = mod_version + "+" + minecraft_version +version = (mod_version + "+" + minecraft_version) import groovy.json.JsonSlurper import groovy.json.JsonOutput @@ -78,6 +78,7 @@ allprojects { } publishMods { + version = project.version changelog = project.changelog type = STABLE def fabricJar = project.provider { project(":fabric").remapJar }.flatMap { it.archiveFile } @@ -89,20 +90,20 @@ publishMods { def fabric = publishOptions { file = fabricJar additionalFiles.from forgeSources - displayName = "[Fabric 1.16-1.20.4] $display_name $version" + displayName = "[Fabric 1.16-1.20.4] $display_name $project.version" modLoaders.addAll "fabric", "quilt" } def forge = publishOptions { file = forgeJar additionalFiles.from fabricSources - displayName = "[Forge 1.17-1.20.4] $display_name $version" + displayName = "[Forge 1.17-1.20.4] $display_name $project.version" modLoaders.add "forge" } def neo = publishOptions { file = neoJar - displayName = "[NeoForge 1.20.2-.4] $display_name $version" + displayName = "[NeoForge 1.20.2-.4] $display_name $project.mod_version+1.20.4" modLoaders.add "neoforge" } @@ -175,6 +176,6 @@ publishMods { dryRun = !accessToken.present repository = github commitish = "16-20.5" - tagName = "release/" + version + tagName = project.version } } \ No newline at end of file