[build] Provide more metadata in the Maven pom

This commit is contained in:
2025-10-15 00:09:10 +02:00
parent ff53708a16
commit 90e7034bfe
23 changed files with 58 additions and 14 deletions

View File

@@ -3,12 +3,17 @@ plugins {
}
val processMinecraftModResources = tasks.register<Copy>("processMinecraftModResources") {
inputs.property("id", project.name)
inputs.property("version", project.version)
inputs.property("name", properties["module.name"])
inputs.property("description", properties["module.description"])
from(project.layout.settingsDirectory.dir("minecraft/mod-template/resources"))
expand(mapOf(
"id" to project.name,
"version" to project.version,
"name" to properties["minecraft.mod.name"],
"description" to properties["minecraft.mod.description"]
"name" to properties["module.name"],
"description" to properties["module.description"]
))
into(project.layout.buildDirectory.dir("minecraftModResources"))
}

View File

@@ -23,9 +23,11 @@ publishing {
publications.all {
if (this is MavenPublication) {
pom {
url.set("https://github.com/Siphalor/tweed-5")
name = project.property("module.name") as String
description = project.property("module.description") as String
url = project.property("git.url") as String
scm {
url.set("https://github.com/Siphalor/tweed-5")
url = project.property("git.url") as String
}
}
}