Update how the archive name is set

This commit is contained in:
Jared 2023-06-12 04:18:37 +02:00
parent a5ac191b4e
commit 0a04d1fa35
4 changed files with 10 additions and 10 deletions

View File

@ -4,9 +4,9 @@ plugins {
id 'maven-publish' id 'maven-publish'
id 'org.spongepowered.gradle.vanilla' id 'org.spongepowered.gradle.vanilla'
} }
base {
archivesBaseName = "${mod_name}-common-${minecraft_version}" archivesName = "${mod_name}-common-${minecraft_version}"
}
minecraft { minecraft {
version(minecraft_version) version(minecraft_version)
if(file("src/main/resources/${mod_id}.accesswidener").exists()){ if(file("src/main/resources/${mod_id}.accesswidener").exists()){

View File

@ -4,9 +4,9 @@ plugins {
id 'maven-publish' id 'maven-publish'
id 'fabric-loom' id 'fabric-loom'
} }
base {
archivesBaseName = "${mod_name}-fabric-${minecraft_version}" archivesName = "${mod_name}-fabric-${minecraft_version}"
}
dependencies { dependencies {
minecraft "com.mojang:minecraft:${minecraft_version}" minecraft "com.mojang:minecraft:${minecraft_version}"
mappings loom.officialMojangMappings() mappings loom.officialMojangMappings()

View File

@ -4,9 +4,9 @@ plugins {
id 'net.minecraftforge.gradle' id 'net.minecraftforge.gradle'
id 'org.spongepowered.mixin' id 'org.spongepowered.mixin'
} }
base {
archivesBaseName = "${mod_name}-forge-${minecraft_version}" archivesName = "${mod_name}-forge-${minecraft_version}"
}
mixin { mixin {
add(sourceSets.main, "${mod_id}.refmap.json") add(sourceSets.main, "${mod_id}.refmap.json")