diff --git a/build.gradle b/build.gradle index 596f7bd..d906eb9 100644 --- a/build.gradle +++ b/build.gradle @@ -37,12 +37,12 @@ allprojects { // 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 :( - processResources { - for (final def file in ["mcmod.info", "META-INF/mods.toml"]) { - inputs.property "version", project.version - - filesMatching(file) { - expand "version": project.version + tasks { + processResources { + for (final def file in ["mcmod.info", "META-INF/mods.toml"]) { + filesMatching(file) { + expand "version": project.version + } } } } @@ -73,7 +73,7 @@ subprojects { // Define the jar output attributes for all platforms archivesBaseName = project.maven_name - version = maven_version + "-" + project.mc_version + version = maven_version group = maven_group // Used to execute code only for specific submodules diff --git a/src/main/resources/mcmod.info b/viaforge-mc112/src/main/resources/mcmod.info similarity index 93% rename from src/main/resources/mcmod.info rename to viaforge-mc112/src/main/resources/mcmod.info index 6b5ffe1..d7b0ff2 100644 --- a/src/main/resources/mcmod.info +++ b/viaforge-mc112/src/main/resources/mcmod.info @@ -3,7 +3,7 @@ "modid": "viaforge", "name": "ViaForge", "description": "Client-side Implementation of the Via* projects for Minecraft Forge", - "version": "3.5.0", + "version": "${version}", "mcversion": "[1.12.2]", "url": "https://github.com/ViaVersion/ViaForge", "updateUrl": "",