Move mcmod.info into mc 1.12 module, fix artifact names

This commit is contained in:
FlorianMichael 2024-04-28 21:10:10 +02:00
parent cb49b6d819
commit 08cf5e9929
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
2 changed files with 8 additions and 8 deletions

View File

@ -37,12 +37,12 @@ allprojects {
// Replace the version in the mcmod.info and mods.toml files with the project version // Replace the version in the mcmod.info and mods.toml files with the project version
// Since this depends on the platform version, we can't define it in the global scope :( // Since this depends on the platform version, we can't define it in the global scope :(
processResources { tasks {
for (final def file in ["mcmod.info", "META-INF/mods.toml"]) { processResources {
inputs.property "version", project.version for (final def file in ["mcmod.info", "META-INF/mods.toml"]) {
filesMatching(file) {
filesMatching(file) { expand "version": project.version
expand "version": project.version }
} }
} }
} }
@ -73,7 +73,7 @@ subprojects {
// Define the jar output attributes for all platforms // Define the jar output attributes for all platforms
archivesBaseName = project.maven_name archivesBaseName = project.maven_name
version = maven_version + "-" + project.mc_version version = maven_version
group = maven_group group = maven_group
// Used to execute code only for specific submodules // Used to execute code only for specific submodules

View File

@ -3,7 +3,7 @@
"modid": "viaforge", "modid": "viaforge",
"name": "ViaForge", "name": "ViaForge",
"description": "Client-side Implementation of the Via* projects for Minecraft Forge", "description": "Client-side Implementation of the Via* projects for Minecraft Forge",
"version": "3.5.0", "version": "${version}",
"mcversion": "[1.12.2]", "mcversion": "[1.12.2]",
"url": "https://github.com/ViaVersion/ViaForge", "url": "https://github.com/ViaVersion/ViaForge",
"updateUrl": "", "updateUrl": "",