build(minecraft): Use new logo in Minecraft mods

This commit is contained in:
2025-11-04 22:30:52 +01:00
parent e7764585eb
commit 47ad406560
4 changed files with 54 additions and 52 deletions

View File

@@ -14,3 +14,47 @@ tasks.shadowJar {
relocate("org.apache.commons", "de.siphalor.tweed5.shadowed.org.apache.commons")
}
tasks.register<Sync>("processMinecraftModResources") {
inputs.property("id", project.name)
inputs.property("version", project.version)
inputs.property("name", properties["module.name"])
inputs.property("description", properties["module.description"])
inputs.property("repoUrl", properties["git.url"])
from(project.layout.settingsDirectory.dir("../tweed5-minecraft/mod-template/resources")) {
expand(
mapOf(
"id" to project.name.replace('-', '_'),
"version" to project.version,
"name" to properties["module.name"],
"description" to properties["module.description"],
"repoUrl" to properties["git.url"],
)
)
}
from(project.layout.settingsDirectory.file("../images/logo-48.png")) {
into("assets/tweed5")
}
into(project.layout.buildDirectory.dir("minecraftModResources"))
}
tasks.register<Sync>("processMinecraftTestmodResources") {
inputs.property("id", project.name)
inputs.property("version", project.version)
inputs.property("name", properties["module.name"])
inputs.property("description", properties["module.description"])
inputs.property("repoUrl", properties["git.url"])
from(project.layout.settingsDirectory.dir("../tweed5-minecraft/mod-template/resources")) {
expand(
mapOf(
"id" to "${project.name.replace('-', '_')}_testmod",
"version" to project.version,
"name" to "${properties["module.name"]} (test mod)",
"description" to properties["module.description"],
"repoUrl" to properties["git.url"],
)
)
}
into(project.layout.buildDirectory.dir("minecraftTestmodResources"))
}