diff --git a/buildSrc/src/main/kotlin/de.siphalor.tweed5.minecraft.mod.dummy.gradle.kts b/buildSrc/src/main/kotlin/de.siphalor.tweed5.minecraft.mod.dummy.gradle.kts index c0d4e4d..a13ad7d 100644 --- a/buildSrc/src/main/kotlin/de.siphalor.tweed5.minecraft.mod.dummy.gradle.kts +++ b/buildSrc/src/main/kotlin/de.siphalor.tweed5.minecraft.mod.dummy.gradle.kts @@ -3,12 +3,17 @@ plugins { } val processMinecraftModResources = tasks.register("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")) } diff --git a/buildSrc/src/main/kotlin/de.siphalor.tweed5.publishing.gradle.kts b/buildSrc/src/main/kotlin/de.siphalor.tweed5.publishing.gradle.kts index d72d8c9..6f54523 100644 --- a/buildSrc/src/main/kotlin/de.siphalor.tweed5.publishing.gradle.kts +++ b/buildSrc/src/main/kotlin/de.siphalor.tweed5.publishing.gradle.kts @@ -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 } } } diff --git a/gradle.properties b/gradle.properties index a9a2511..3a2ab9e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,5 @@ org.gradle.configuration-cache=true version = 0.1.0 + +git.url = https://gitea.siphalor.de/siphalor/tweed5 diff --git a/minecraft/tweed5-bundle/gradle.properties b/minecraft/tweed5-bundle/gradle.properties index ca4cc24..c5d992a 100644 --- a/minecraft/tweed5-bundle/gradle.properties +++ b/minecraft/tweed5-bundle/gradle.properties @@ -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. diff --git a/tweed5-annotation-inheritance/gradle.properties b/tweed5-annotation-inheritance/gradle.properties new file mode 100644 index 0000000..44f11b5 --- /dev/null +++ b/tweed5-annotation-inheritance/gradle.properties @@ -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. diff --git a/tweed5-attributes-extension/gradle.properties b/tweed5-attributes-extension/gradle.properties new file mode 100644 index 0000000..e01cfcf --- /dev/null +++ b/tweed5-attributes-extension/gradle.properties @@ -0,0 +1,2 @@ +module.name = Tweed 5 Attributes Extension +module.description = A Tweed extension that allows defining generic attributes on config entries. diff --git a/tweed5-comment-loader-extension/gradle.properties b/tweed5-comment-loader-extension/gradle.properties index e460121..80f1853 100644 --- a/tweed5-comment-loader-extension/gradle.properties +++ b/tweed5-comment-loader-extension/gradle.properties @@ -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 diff --git a/tweed5-construct/gradle.properties b/tweed5-construct/gradle.properties new file mode 100644 index 0000000..bb41432 --- /dev/null +++ b/tweed5-construct/gradle.properties @@ -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. diff --git a/tweed5-core/gradle.properties b/tweed5-core/gradle.properties index e69de29..fd89027 100644 --- a/tweed5-core/gradle.properties +++ b/tweed5-core/gradle.properties @@ -0,0 +1,2 @@ +module.name = Tweed 5 Core +module.description = Provides core APIs and functionality for Tweed 5, like entries, containers and extensions. diff --git a/tweed5-default-extensions/gradle.properties b/tweed5-default-extensions/gradle.properties new file mode 100644 index 0000000..05b237e --- /dev/null +++ b/tweed5-default-extensions/gradle.properties @@ -0,0 +1,2 @@ +module.name = Tweed 5 Default Extensions +module.description = A collection of commonly used Tweed 5 extensions bundled for convenience. diff --git a/tweed5-naming-format/gradle.properties b/tweed5-naming-format/gradle.properties new file mode 100644 index 0000000..30f3335 --- /dev/null +++ b/tweed5-naming-format/gradle.properties @@ -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. diff --git a/tweed5-patchwork/gradle.properties b/tweed5-patchwork/gradle.properties new file mode 100644 index 0000000..cc420fa --- /dev/null +++ b/tweed5-patchwork/gradle.properties @@ -0,0 +1,2 @@ +module.name = Tweed 5 Patchwork +module.description = Provides extendable data structures that provide strong encapsulation and type safe access. diff --git a/tweed5-serde-api/gradle.properties b/tweed5-serde-api/gradle.properties new file mode 100644 index 0000000..84a7d36 --- /dev/null +++ b/tweed5-serde-api/gradle.properties @@ -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. diff --git a/tweed5-serde-extension/gradle.properties b/tweed5-serde-extension/gradle.properties new file mode 100644 index 0000000..c00256e --- /dev/null +++ b/tweed5-serde-extension/gradle.properties @@ -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. diff --git a/tweed5-serde-gson/gradle.properties b/tweed5-serde-gson/gradle.properties index 0413e12..f6aadf4 100644 --- a/tweed5-serde-gson/gradle.properties +++ b/tweed5-serde-gson/gradle.properties @@ -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. diff --git a/tweed5-serde-hjson/gradle.properties b/tweed5-serde-hjson/gradle.properties index d10f6c8..ad91e8a 100644 --- a/tweed5-serde-hjson/gradle.properties +++ b/tweed5-serde-hjson/gradle.properties @@ -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. diff --git a/tweed5-serde-jackson/gradle.properties b/tweed5-serde-jackson/gradle.properties index 2ba9272..68bd3ba 100644 --- a/tweed5-serde-jackson/gradle.properties +++ b/tweed5-serde-jackson/gradle.properties @@ -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. diff --git a/tweed5-type-utils/gradle.properties b/tweed5-type-utils/gradle.properties new file mode 100644 index 0000000..048dd99 --- /dev/null +++ b/tweed5-type-utils/gradle.properties @@ -0,0 +1,2 @@ +module.name = Tweed 5 Type Utils +module.description = Various utilities to ease processing Java types with reflection. diff --git a/tweed5-utils/gradle.properties b/tweed5-utils/gradle.properties new file mode 100644 index 0000000..7bae128 --- /dev/null +++ b/tweed5-utils/gradle.properties @@ -0,0 +1,2 @@ +module.name = Tweed 5 Utils +module.description = Generic utility classes for Tweed 5. diff --git a/tweed5-weaver-pojo-attributes-extension/gradle.properties b/tweed5-weaver-pojo-attributes-extension/gradle.properties new file mode 100644 index 0000000..ac3359e --- /dev/null +++ b/tweed5-weaver-pojo-attributes-extension/gradle.properties @@ -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. diff --git a/tweed5-weaver-pojo-serde-extension/gradle.properties b/tweed5-weaver-pojo-serde-extension/gradle.properties new file mode 100644 index 0000000..233e90e --- /dev/null +++ b/tweed5-weaver-pojo-serde-extension/gradle.properties @@ -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. diff --git a/tweed5-weaver-pojo-validation-extension/gradle.properties b/tweed5-weaver-pojo-validation-extension/gradle.properties new file mode 100644 index 0000000..3afdcf4 --- /dev/null +++ b/tweed5-weaver-pojo-validation-extension/gradle.properties @@ -0,0 +1,2 @@ +module.name = Validation Extension for Tweed 5 Weaver POJO +module.description = Allows declaring validation constraints on POJOs using annotations. diff --git a/tweed5-weaver-pojo/gradle.properties b/tweed5-weaver-pojo/gradle.properties new file mode 100644 index 0000000..d818148 --- /dev/null +++ b/tweed5-weaver-pojo/gradle.properties @@ -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.