mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2024-11-08 10:09:36 +01:00
Added version-replacement
This commit is contained in:
parent
cc10575786
commit
48dea35519
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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": [
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user