mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2024-11-26 12:45:44 +01:00
Pass description into mod files via Gradle as well
This commit is contained in:
parent
5316e8da17
commit
e8327312cb
30
build.gradle
30
build.gradle
@ -46,20 +46,8 @@ 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 :(
|
|
||||||
tasks {
|
|
||||||
processResources {
|
|
||||||
for (final def file in ["mcmod.info", "META-INF/mods.toml"]) {
|
|
||||||
filesMatching(file) {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Including all required libraries for ViaVersion {for version numbers see gradle.properties}
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
// For common source code
|
||||||
compileOnly "io.netty:netty-all:4.1.112.Final"
|
compileOnly "io.netty:netty-all:4.1.112.Final"
|
||||||
|
|
||||||
library "com.viaversion:viaversion-common:5.0.3-SNAPSHOT"
|
library "com.viaversion:viaversion-common:5.0.3-SNAPSHOT"
|
||||||
@ -85,6 +73,7 @@ subprojects {
|
|||||||
group = project.maven_group
|
group = project.maven_group
|
||||||
archivesName = project.name
|
archivesName = project.name
|
||||||
version = project.maven_version
|
version = project.maven_version
|
||||||
|
description = project.maven_description
|
||||||
}
|
}
|
||||||
|
|
||||||
def mcVersion = project.forge_version.split("-")[0]
|
def mcVersion = project.forge_version.split("-")[0]
|
||||||
@ -140,6 +129,21 @@ subprojects {
|
|||||||
library project(":") // Include the base project, to get Common-ViaForge
|
library project(":") // Include the base project, to get Common-ViaForge
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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 :(
|
||||||
|
tasks {
|
||||||
|
processResources {
|
||||||
|
for (final def file in ["mcmod.info", "META-INF/mods.toml"]) {
|
||||||
|
filesMatching(file) {
|
||||||
|
expand (
|
||||||
|
"version": project.version,
|
||||||
|
"description": project.description
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
mixin {
|
mixin {
|
||||||
add sourceSets.main, "mixins.${project.name}.refmap.json"
|
add sourceSets.main, "mixins.${project.name}.refmap.json"
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@ org.gradle.daemon=false
|
|||||||
# Project Details
|
# Project Details
|
||||||
maven_group=de.florianmichael
|
maven_group=de.florianmichael
|
||||||
maven_version=3.7.1-SNAPSHOT
|
maven_version=3.7.1-SNAPSHOT
|
||||||
|
maven_description=Client-side Implementation of the Via* projects for Minecraft Forge
|
||||||
|
|
||||||
slf4j_version=2.0.7
|
slf4j_version=2.0.7
|
||||||
mixin_version=0.8.3
|
mixin_version=0.8.3
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
"modid": "viaforge",
|
"modid": "viaforge",
|
||||||
"name": "ViaForge",
|
"name": "ViaForge",
|
||||||
"description": "Client-side Implementation of the Via* projects for Minecraft Forge",
|
"description": "${description}",
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
"mcversion": "[1.12,)",
|
"mcversion": "[1.12,)",
|
||||||
"url": "https://github.com/ViaVersion/ViaForge",
|
"url": "https://github.com/ViaVersion/ViaForge",
|
||||||
|
@ -13,6 +13,4 @@ displayURL="https://github.com/FlorianMichael"
|
|||||||
logoFile="icon.png"
|
logoFile="icon.png"
|
||||||
credits="Github contributors"
|
credits="Github contributors"
|
||||||
authors="FlorianMichael/EnZaXD"
|
authors="FlorianMichael/EnZaXD"
|
||||||
description='''
|
description="${description}"
|
||||||
Client-side Implementation of the Via* projects for Minecraft Forge
|
|
||||||
'''
|
|
@ -13,6 +13,4 @@ displayURL="https://github.com/FlorianMichael"
|
|||||||
logoFile="icon.png"
|
logoFile="icon.png"
|
||||||
credits="Github contributors"
|
credits="Github contributors"
|
||||||
authors="FlorianMichael/EnZaXD"
|
authors="FlorianMichael/EnZaXD"
|
||||||
description='''
|
description="${description}"
|
||||||
Client-side Implementation of the Via* projects for Minecraft Forge
|
|
||||||
'''
|
|
@ -13,6 +13,4 @@ displayURL="https://github.com/FlorianMichael"
|
|||||||
logoFile="icon.png"
|
logoFile="icon.png"
|
||||||
credits="Github contributors"
|
credits="Github contributors"
|
||||||
authors="FlorianMichael/EnZaXD"
|
authors="FlorianMichael/EnZaXD"
|
||||||
description='''
|
description="${description}"
|
||||||
Client-side Implementation of the Via* projects for Minecraft Forge
|
|
||||||
'''
|
|
@ -13,6 +13,4 @@ displayURL="https://github.com/FlorianMichael"
|
|||||||
logoFile="icon.png"
|
logoFile="icon.png"
|
||||||
credits="Github contributors"
|
credits="Github contributors"
|
||||||
authors="FlorianMichael/EnZaXD"
|
authors="FlorianMichael/EnZaXD"
|
||||||
description='''
|
description="${description}"
|
||||||
Client-side Implementation of the Via* projects for Minecraft Forge
|
|
||||||
'''
|
|
@ -13,6 +13,4 @@ displayURL="https://github.com/FlorianMichael"
|
|||||||
logoFile="icon.png"
|
logoFile="icon.png"
|
||||||
credits="Github contributors"
|
credits="Github contributors"
|
||||||
authors="FlorianMichael/EnZaXD"
|
authors="FlorianMichael/EnZaXD"
|
||||||
description='''
|
description="${description}"
|
||||||
Client-side Implementation of the Via* projects for Minecraft Forge
|
|
||||||
'''
|
|
@ -13,6 +13,4 @@ displayURL="https://github.com/FlorianMichael"
|
|||||||
logoFile="icon.png"
|
logoFile="icon.png"
|
||||||
credits="Github contributors"
|
credits="Github contributors"
|
||||||
authors="FlorianMichael/EnZaXD"
|
authors="FlorianMichael/EnZaXD"
|
||||||
description='''
|
description="${description}"
|
||||||
Client-side Implementation of the Via* projects for Minecraft Forge
|
|
||||||
'''
|
|
Loading…
Reference in New Issue
Block a user