[build] Provide more metadata in the Maven pom
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user