Added version-replacement

This commit is contained in:
FlorianMichael 2023-10-21 00:21:33 +02:00
parent cc10575786
commit 48dea35519
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
4 changed files with 19 additions and 7 deletions

View File

@ -4,7 +4,7 @@ plugins {
}
archivesBaseName = project.maven_name
version = maven_version + project.mc_version
version = maven_version + "-" + project.mc_version
group = maven_group
compileJava.options.encoding = "UTF-8"
@ -31,3 +31,14 @@ dependencies {
include "net.raphimc:ViaLoader:${project.vialoader_version}"
}
processResources {
inputs.property "version", project.version
for (final def file in ["mcmod.info", "META-INF/mods.toml"]) {
filesMatching(file) {
expand "version": project.version
}
}
}

View File

@ -8,15 +8,16 @@ minecraft {
client {
workingDirectory project.file("run")
property 'forge.logging.markers', 'REGISTRIES'
property "forge.logging.markers", "REGISTRIES"
property "forge.logging.console.level", "debug"
// mixin
property 'mixin.debug.export', 'true'
property "mixin.debug.export", "true"
property "mixin.hotSwap", "true"
property "fml.coreMods.load", "de.florianmichael.viaforge.mixin.MixinLoader"
args '-mixin.config=' + 'mixins.' + project.getProperty('maven_name') + '.json'
args '-mixin.config=' + 'mixins.' + project.getProperty('maven_name') + ".json"
// source set
mods {
"ViaForge" {
source sourceSets.main

View File

@ -3,8 +3,8 @@
"modid": "viaforge",
"name": "ViaForge",
"description": "Client-side Implementation of ViaVersion, ViaBackwards and ViaRewind for Legacy Minecraft Forge",
"version": "3.3.3",
"mcversion": "[1.8,1.12.2]",
"version": "${version}",
"mcversion": "[1.12.2]",
"url": "https://github.com/ViaVersion/ViaForge",
"updateUrl": "",
"authorList": [

View File

@ -7,7 +7,7 @@ showAsResourcePack=false
[[mods]]
modId="viaforge"
version="3.3.3"
version="${version}"
displayName="ViaForge"
displayURL="https://github.com/FlorianMichael"
credits="FlorianMichael/EnZaXD and all ViaVersion/ViaForge contributors"