[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
}
}
}

View File

@@ -1,3 +1,5 @@
org.gradle.configuration-cache=true
version = 0.1.0
git.url = https://gitea.siphalor.de/siphalor/tweed5

View File

@@ -1,3 +1,3 @@
minecraft.mod.name = Tweed 5 Bundle
minecraft.mod.description = Bundle of pre-packaged Tweed modules \
module.name = Tweed 5 Bundle
module.description = Bundle of pre-packaged Tweed modules \
that are usually required for your Minecraft mod config needs.

View File

@@ -0,0 +1,3 @@
module.name = Tweed 5 Annotation Inheritance
module.description = Provides a mechanism to create meta-annotations. \
This allows bundling annotations that are commonly used together into a single convenience annotation.

View File

@@ -0,0 +1,2 @@
module.name = Tweed 5 Attributes Extension
module.description = A Tweed extension that allows defining generic attributes on config entries.

View File

@@ -1,2 +1,2 @@
minecraft.mod.name = Tweed 5 Comment Loader Extension
minecraft.mod.description = Tweed 5 module that allows dynamically loading comments from data files, e.g., for i18n
module.name = Tweed 5 Comment Loader Extension
module.description = Tweed 5 module that allows dynamically loading comments from data files, e.g., for i18n

View File

@@ -0,0 +1,3 @@
module.name = Tweed 5 Construct
module.description = Provides a generic factory system for creating instances of subclasses with predefined constructor arguments. \
This solves Java's lack of constructor inheritance by enabling flexible object instantiation patterns.

View File

@@ -0,0 +1,2 @@
module.name = Tweed 5 Core
module.description = Provides core APIs and functionality for Tweed 5, like entries, containers and extensions.

View File

@@ -0,0 +1,2 @@
module.name = Tweed 5 Default Extensions
module.description = A collection of commonly used Tweed 5 extensions bundled for convenience.

View File

@@ -0,0 +1,3 @@
module.name = Tweed 5 Naming Format
module.description = Utilities and conventions for parsing and converting between different naming formats. \
Examples include camelCase, snake_case, kebab-case, and more.

View File

@@ -0,0 +1,2 @@
module.name = Tweed 5 Patchwork
module.description = Provides extendable data structures that provide strong encapsulation and type safe access.

View File

@@ -0,0 +1,2 @@
module.name = Tweed 5 Serde API
module.description = An abstract reader and writer system as a base layer for supporting different serialization formats.

View File

@@ -0,0 +1,2 @@
module.name = Tweed 5 Serde Extension
module.description = A Tweed extension that provides support for reading and writing entries using Tweed's serde API.

View File

@@ -1,2 +1,2 @@
minecraft.mod.name = Tweed 5 Gson
minecraft.mod.description = Tweed 5 module that adds support for reading and writing JSON using the Gson library.
module.name = Tweed 5 Gson
module.description = Tweed 5 module that adds support for reading and writing JSON using the Gson library.

View File

@@ -1,2 +1,2 @@
minecraft.mod.name = Tweed 5 Hjson
minecraft.mod.description = Tweed 5 module that supports the Hjson file format.
module.name = Tweed 5 Hjson
module.description = Tweed 5 module that adds support for reading and writing Hjson files.

View File

@@ -1,2 +1,2 @@
minecraft.mod.name = Tweed 5 Jackson
minecraft.mod.description = Tweed 5 module that adds support for reading and writing using the Jackson library.
module.name = Tweed 5 Jackson
module.description = Tweed 5 module that adds support for reading and writing JSON files using the Jackson library.

View File

@@ -0,0 +1,2 @@
module.name = Tweed 5 Type Utils
module.description = Various utilities to ease processing Java types with reflection.

View File

@@ -0,0 +1,2 @@
module.name = Tweed 5 Utils
module.description = Generic utility classes for Tweed 5.

View File

@@ -0,0 +1,2 @@
module.name = Attributes Extension for Tweed5 Weaver POJO
module.description = Adds support for declaring generic attributes using annotations to the Tweed5 Weaver POJO.

View File

@@ -0,0 +1,3 @@
module.name = Serde Extension for Tweed 5 Weaver POJO
module.description = Adds support for declaring and deriving serializers and deserializers for Tweed 5's Serde API \
from annotations.

View File

@@ -0,0 +1,2 @@
module.name = Validation Extension for Tweed 5 Weaver POJO
module.description = Allows declaring validation constraints on POJOs using annotations.

View File

@@ -0,0 +1,3 @@
module.name = Tweed 5 Weaver POJO
module.description = Provides a mechanism to derive a Tweed 5 entry structure \
from a POJO using its structure and annotations.