[build] Provide more metadata in the Maven pom
This commit is contained in:
@@ -3,12 +3,17 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val processMinecraftModResources = tasks.register<Copy>("processMinecraftModResources") {
|
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"))
|
from(project.layout.settingsDirectory.dir("minecraft/mod-template/resources"))
|
||||||
expand(mapOf(
|
expand(mapOf(
|
||||||
"id" to project.name,
|
"id" to project.name,
|
||||||
"version" to project.version,
|
"version" to project.version,
|
||||||
"name" to properties["minecraft.mod.name"],
|
"name" to properties["module.name"],
|
||||||
"description" to properties["minecraft.mod.description"]
|
"description" to properties["module.description"]
|
||||||
))
|
))
|
||||||
into(project.layout.buildDirectory.dir("minecraftModResources"))
|
into(project.layout.buildDirectory.dir("minecraftModResources"))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,9 +23,11 @@ publishing {
|
|||||||
publications.all {
|
publications.all {
|
||||||
if (this is MavenPublication) {
|
if (this is MavenPublication) {
|
||||||
pom {
|
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 {
|
scm {
|
||||||
url.set("https://github.com/Siphalor/tweed-5")
|
url = project.property("git.url") as String
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
org.gradle.configuration-cache=true
|
org.gradle.configuration-cache=true
|
||||||
|
|
||||||
version = 0.1.0
|
version = 0.1.0
|
||||||
|
|
||||||
|
git.url = https://gitea.siphalor.de/siphalor/tweed5
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
minecraft.mod.name = Tweed 5 Bundle
|
module.name = Tweed 5 Bundle
|
||||||
minecraft.mod.description = Bundle of pre-packaged Tweed modules \
|
module.description = Bundle of pre-packaged Tweed modules \
|
||||||
that are usually required for your Minecraft mod config needs.
|
that are usually required for your Minecraft mod config needs.
|
||||||
|
|||||||
3
tweed5-annotation-inheritance/gradle.properties
Normal file
3
tweed5-annotation-inheritance/gradle.properties
Normal 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.
|
||||||
2
tweed5-attributes-extension/gradle.properties
Normal file
2
tweed5-attributes-extension/gradle.properties
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
module.name = Tweed 5 Attributes Extension
|
||||||
|
module.description = A Tweed extension that allows defining generic attributes on config entries.
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
minecraft.mod.name = Tweed 5 Comment Loader Extension
|
module.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.description = Tweed 5 module that allows dynamically loading comments from data files, e.g., for i18n
|
||||||
|
|||||||
3
tweed5-construct/gradle.properties
Normal file
3
tweed5-construct/gradle.properties
Normal 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.
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
module.name = Tweed 5 Core
|
||||||
|
module.description = Provides core APIs and functionality for Tweed 5, like entries, containers and extensions.
|
||||||
|
|||||||
2
tweed5-default-extensions/gradle.properties
Normal file
2
tweed5-default-extensions/gradle.properties
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
module.name = Tweed 5 Default Extensions
|
||||||
|
module.description = A collection of commonly used Tweed 5 extensions bundled for convenience.
|
||||||
3
tweed5-naming-format/gradle.properties
Normal file
3
tweed5-naming-format/gradle.properties
Normal 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.
|
||||||
2
tweed5-patchwork/gradle.properties
Normal file
2
tweed5-patchwork/gradle.properties
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
module.name = Tweed 5 Patchwork
|
||||||
|
module.description = Provides extendable data structures that provide strong encapsulation and type safe access.
|
||||||
2
tweed5-serde-api/gradle.properties
Normal file
2
tweed5-serde-api/gradle.properties
Normal 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.
|
||||||
2
tweed5-serde-extension/gradle.properties
Normal file
2
tweed5-serde-extension/gradle.properties
Normal 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.
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
minecraft.mod.name = Tweed 5 Gson
|
module.name = Tweed 5 Gson
|
||||||
minecraft.mod.description = Tweed 5 module that adds support for reading and writing JSON using the Gson library.
|
module.description = Tweed 5 module that adds support for reading and writing JSON using the Gson library.
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
minecraft.mod.name = Tweed 5 Hjson
|
module.name = Tweed 5 Hjson
|
||||||
minecraft.mod.description = Tweed 5 module that supports the Hjson file format.
|
module.description = Tweed 5 module that adds support for reading and writing Hjson files.
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
minecraft.mod.name = Tweed 5 Jackson
|
module.name = Tweed 5 Jackson
|
||||||
minecraft.mod.description = Tweed 5 module that adds support for reading and writing using the Jackson library.
|
module.description = Tweed 5 module that adds support for reading and writing JSON files using the Jackson library.
|
||||||
|
|||||||
2
tweed5-type-utils/gradle.properties
Normal file
2
tweed5-type-utils/gradle.properties
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
module.name = Tweed 5 Type Utils
|
||||||
|
module.description = Various utilities to ease processing Java types with reflection.
|
||||||
2
tweed5-utils/gradle.properties
Normal file
2
tweed5-utils/gradle.properties
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
module.name = Tweed 5 Utils
|
||||||
|
module.description = Generic utility classes for Tweed 5.
|
||||||
@@ -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.
|
||||||
3
tweed5-weaver-pojo-serde-extension/gradle.properties
Normal file
3
tweed5-weaver-pojo-serde-extension/gradle.properties
Normal 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.
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
module.name = Validation Extension for Tweed 5 Weaver POJO
|
||||||
|
module.description = Allows declaring validation constraints on POJOs using annotations.
|
||||||
3
tweed5-weaver-pojo/gradle.properties
Normal file
3
tweed5-weaver-pojo/gradle.properties
Normal 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.
|
||||||
Reference in New Issue
Block a user