From 9826cad8ac6ba2399ddd52e0c52159c1b92f2511 Mon Sep 17 00:00:00 2001 From: i509VCB Date: Tue, 19 Jan 2021 18:48:09 +0000 Subject: [PATCH] Add custom value denoting module lifecycles. (#1253) * Add custom value denoting module lifecycles. * Make the module validation work. My hand has been forced - we must use buildSrc since JsonSlurper is not available in main buildscript. * Apply task to each project and dont cross projects * A horrible hack * Wait what * It works now. * Not needed * Drop unneeded maven repo, cache map lookup (cherry picked from commit daa38b3d8212614c0ab4f4436695acff567d3fb9) --- build.gradle | 4 + .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 3 + .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 3 + .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 3 + .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- .../src/main/resources/fabric.mod.json | 5 +- gradle/module-validation.gradle | 61 ++++++ gradle/wrapper/gradle-wrapper.jar | Bin 58694 -> 59203 bytes gradle/wrapper/gradle-wrapper.properties | 2 +- gradlew | 2 + gradlew.bat | 192 ++++++++---------- 44 files changed, 306 insertions(+), 139 deletions(-) create mode 100644 gradle/module-validation.gradle diff --git a/build.gradle b/build.gradle index 0c6d1a1df..971196b29 100644 --- a/build.gradle +++ b/build.gradle @@ -153,6 +153,10 @@ allprojects { } } +// Apply auxiliary buildscripts to submodules +// This must be done after all plugins are applied to subprojects +apply from: "gradle/module-validation.gradle" + javadoc { options { source = "8" diff --git a/fabric-api-base/src/main/resources/fabric.mod.json b/fabric-api-base/src/main/resources/fabric.mod.json index 4ce576766..7fda5d59f 100644 --- a/fabric-api-base/src/main/resources/fabric.mod.json +++ b/fabric-api-base/src/main/resources/fabric.mod.json @@ -18,5 +18,8 @@ "depends": { "fabricloader": ">=0.4.0" }, - "description": "Contains the essentials for Fabric API modules." + "description": "Contains the essentials for Fabric API modules.", + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-biomes-v1/src/main/resources/fabric.mod.json b/fabric-biomes-v1/src/main/resources/fabric.mod.json index a7c0e301f..2e6354386 100644 --- a/fabric-biomes-v1/src/main/resources/fabric.mod.json +++ b/fabric-biomes-v1/src/main/resources/fabric.mod.json @@ -21,5 +21,8 @@ "description": "Hooks for adding biomes to the default world generator.", "mixins": [ "fabric-biomes-v1.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-blockrenderlayer-v1/src/main/resources/fabric.mod.json b/fabric-blockrenderlayer-v1/src/main/resources/fabric.mod.json index 036a3c431..12ec985b7 100644 --- a/fabric-blockrenderlayer-v1/src/main/resources/fabric.mod.json +++ b/fabric-blockrenderlayer-v1/src/main/resources/fabric.mod.json @@ -23,5 +23,8 @@ "description": "Registration utility for block and fluid render layers.", "mixins": [ "fabric-blockrenderlayer-v1.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-climbable-api-v1/src/main/resources/fabric.mod.json b/fabric-climbable-api-v1/src/main/resources/fabric.mod.json index a9203de9e..06ba46461 100644 --- a/fabric-climbable-api-v1/src/main/resources/fabric.mod.json +++ b/fabric-climbable-api-v1/src/main/resources/fabric.mod.json @@ -23,5 +23,8 @@ "description": "Re-implements the minecraft:climbable tag from 1.16+ back in 1.15", "mixins": [ "fabric-climbable-api-v1.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-command-api-v1/src/main/resources/fabric.mod.json b/fabric-command-api-v1/src/main/resources/fabric.mod.json index b8fcd9e7f..2ce93aafe 100644 --- a/fabric-command-api-v1/src/main/resources/fabric.mod.json +++ b/fabric-command-api-v1/src/main/resources/fabric.mod.json @@ -22,5 +22,8 @@ "description": "Adds command-related hooks.", "mixins": [ "fabric-command-api-v1.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-commands-v0/src/main/resources/fabric.mod.json b/fabric-commands-v0/src/main/resources/fabric.mod.json index 8048ade7c..7f401a491 100644 --- a/fabric-commands-v0/src/main/resources/fabric.mod.json +++ b/fabric-commands-v0/src/main/resources/fabric.mod.json @@ -22,5 +22,8 @@ }, "description": "Deprecated. Please migrate to v1", "mixins": [ - ] + ], + "custom": { + "fabric-api:module-lifecycle": "deprecated" + } } diff --git a/fabric-containers-v0/src/main/resources/fabric.mod.json b/fabric-containers-v0/src/main/resources/fabric.mod.json index 765b3500e..76281ce45 100644 --- a/fabric-containers-v0/src/main/resources/fabric.mod.json +++ b/fabric-containers-v0/src/main/resources/fabric.mod.json @@ -29,5 +29,8 @@ "client": [ "net.fabricmc.fabric.impl.client.container.ScreenProviderRegistryImpl::init" ] + }, + "custom": { + "fabric-api:module-lifecycle": "deprecated" } } diff --git a/fabric-content-registries-v0/src/main/resources/fabric.mod.json b/fabric-content-registries-v0/src/main/resources/fabric.mod.json index 18b0e90ac..af6b11dae 100644 --- a/fabric-content-registries-v0/src/main/resources/fabric.mod.json +++ b/fabric-content-registries-v0/src/main/resources/fabric.mod.json @@ -23,5 +23,8 @@ "description": "Adds registries for vanilla mechanics that are missing them.", "mixins": [ "fabric-content-registries-v0.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-crash-report-info-v1/src/main/resources/fabric.mod.json b/fabric-crash-report-info-v1/src/main/resources/fabric.mod.json index 53df27ffb..2d6add287 100644 --- a/fabric-crash-report-info-v1/src/main/resources/fabric.mod.json +++ b/fabric-crash-report-info-v1/src/main/resources/fabric.mod.json @@ -21,5 +21,8 @@ "description": "Adds Fabric-related debug info to crash reports.", "mixins": [ "fabric-crash-report-info-v1.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-dimensions-v1/src/main/resources/fabric.mod.json b/fabric-dimensions-v1/src/main/resources/fabric.mod.json index b72c0f797..31779ae78 100644 --- a/fabric-dimensions-v1/src/main/resources/fabric.mod.json +++ b/fabric-dimensions-v1/src/main/resources/fabric.mod.json @@ -16,5 +16,8 @@ }, "mixins": [ "fabric-dimensions-v1.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "experimental" + } } diff --git a/fabric-events-interaction-v0/src/main/resources/fabric.mod.json b/fabric-events-interaction-v0/src/main/resources/fabric.mod.json index 94a7c7f11..85cc9baae 100644 --- a/fabric-events-interaction-v0/src/main/resources/fabric.mod.json +++ b/fabric-events-interaction-v0/src/main/resources/fabric.mod.json @@ -31,5 +31,8 @@ "description": "Events for player interaction with blocks and entities.", "mixins": [ "fabric-events-interaction-v0.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-events-lifecycle-v0/src/main/resources/fabric.mod.json b/fabric-events-lifecycle-v0/src/main/resources/fabric.mod.json index 7eb6a935f..5630ecba6 100644 --- a/fabric-events-lifecycle-v0/src/main/resources/fabric.mod.json +++ b/fabric-events-lifecycle-v0/src/main/resources/fabric.mod.json @@ -29,5 +29,8 @@ "fabric-item-api-v1": "*", "fabric-lifecycle-events-v1": "*" }, - "description": "Legacy events for the game's lifecycle, superseded by fabric-lifecycle-events-v1 and fabric-item-api-v1." + "description": "Legacy events for the game's lifecycle, superseded by fabric-lifecycle-events-v1 and fabric-item-api-v1.", + "custom": { + "fabric-api:module-lifecycle": "deprecated" + } } diff --git a/fabric-item-api-v1/src/main/resources/fabric.mod.json b/fabric-item-api-v1/src/main/resources/fabric.mod.json index 111fe5731..6a2e17f7c 100644 --- a/fabric-item-api-v1/src/main/resources/fabric.mod.json +++ b/fabric-item-api-v1/src/main/resources/fabric.mod.json @@ -22,5 +22,8 @@ "fabricloader": ">=0.4.0", "fabric-api-base": "*" }, - "description": "Hooks for items" + "description": "Hooks for items", + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-item-groups-v0/src/main/resources/fabric.mod.json b/fabric-item-groups-v0/src/main/resources/fabric.mod.json index 74ce83e75..9e60fb649 100644 --- a/fabric-item-groups-v0/src/main/resources/fabric.mod.json +++ b/fabric-item-groups-v0/src/main/resources/fabric.mod.json @@ -24,5 +24,8 @@ "description": "An API for adding custom item groups.", "mixins": [ "fabric-item-groups-v0.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-key-binding-api-v1/src/main/resources/fabric.mod.json b/fabric-key-binding-api-v1/src/main/resources/fabric.mod.json index c7fe5b4ff..db552fc70 100644 --- a/fabric-key-binding-api-v1/src/main/resources/fabric.mod.json +++ b/fabric-key-binding-api-v1/src/main/resources/fabric.mod.json @@ -21,5 +21,8 @@ "description": "Key Binding registry API.", "mixins": [ "fabric-key-binding-api-v1.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-keybindings-v0/src/main/resources/fabric.mod.json b/fabric-keybindings-v0/src/main/resources/fabric.mod.json index a6c01bfaf..c35c67374 100644 --- a/fabric-keybindings-v0/src/main/resources/fabric.mod.json +++ b/fabric-keybindings-v0/src/main/resources/fabric.mod.json @@ -19,5 +19,8 @@ "fabricloader": ">=0.4.0", "fabric-key-binding-api-v1": "*" }, - "description": "Keybinding registry API." + "description": "Keybinding registry API.", + "custom": { + "fabric-api:module-lifecycle": "deprecated" + } } diff --git a/fabric-lifecycle-events-v1/src/main/resources/fabric.mod.json b/fabric-lifecycle-events-v1/src/main/resources/fabric.mod.json index f0c3745e2..d9d009b5f 100644 --- a/fabric-lifecycle-events-v1/src/main/resources/fabric.mod.json +++ b/fabric-lifecycle-events-v1/src/main/resources/fabric.mod.json @@ -22,5 +22,8 @@ "fabricloader": ">=0.4.0", "fabric-api-base": "*" }, - "description": "Events for the game's lifecycle." + "description": "Events for the game's lifecycle.", + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-loot-tables-v1/src/main/resources/fabric.mod.json b/fabric-loot-tables-v1/src/main/resources/fabric.mod.json index 597b845d2..ecd00ec3c 100644 --- a/fabric-loot-tables-v1/src/main/resources/fabric.mod.json +++ b/fabric-loot-tables-v1/src/main/resources/fabric.mod.json @@ -22,5 +22,8 @@ "description": "Hooks for manipulating loot tables.", "mixins": [ "fabric-loot-tables-v1.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-mining-levels-v0/src/main/resources/fabric.mod.json b/fabric-mining-levels-v0/src/main/resources/fabric.mod.json index bbf95ced2..c7bfd8097 100644 --- a/fabric-mining-levels-v0/src/main/resources/fabric.mod.json +++ b/fabric-mining-levels-v0/src/main/resources/fabric.mod.json @@ -21,5 +21,8 @@ "fabric-tag-extensions-v0": "*", "fabric-tool-attribute-api-v1": "*" }, - "description": "Block mining level tags for tools. Deprecated and replaced by fabric-tool-attribute-v1." + "description": "Block mining level tags for tools. Deprecated and replaced by fabric-tool-attribute-v1.", + "custom": { + "fabric-api:module-lifecycle": "deprecated" + } } diff --git a/fabric-models-v0/src/main/resources/fabric.mod.json b/fabric-models-v0/src/main/resources/fabric.mod.json index c66ff4e10..93a4b284b 100644 --- a/fabric-models-v0/src/main/resources/fabric.mod.json +++ b/fabric-models-v0/src/main/resources/fabric.mod.json @@ -22,5 +22,8 @@ "description": "Hooks for models and model loading.", "mixins": [ "fabric-models-v0.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-networking-api-v1/src/main/resources/fabric.mod.json b/fabric-networking-api-v1/src/main/resources/fabric.mod.json index 0e2b09bc5..4264185e7 100644 --- a/fabric-networking-api-v1/src/main/resources/fabric.mod.json +++ b/fabric-networking-api-v1/src/main/resources/fabric.mod.json @@ -30,5 +30,8 @@ "description": "Low-level, vanilla protocol oriented networking hooks.", "mixins": [ "fabric-networking-api-v1.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-networking-blockentity-v0/src/main/resources/fabric.mod.json b/fabric-networking-blockentity-v0/src/main/resources/fabric.mod.json index 3a3a27891..e41cbd094 100644 --- a/fabric-networking-blockentity-v0/src/main/resources/fabric.mod.json +++ b/fabric-networking-blockentity-v0/src/main/resources/fabric.mod.json @@ -22,5 +22,8 @@ "description": "Networking hooks for block entities.", "mixins": [ "fabric-networking-blockentity-v0.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-networking-v0/src/main/resources/fabric.mod.json b/fabric-networking-v0/src/main/resources/fabric.mod.json index b5c186463..081e30da0 100644 --- a/fabric-networking-v0/src/main/resources/fabric.mod.json +++ b/fabric-networking-v0/src/main/resources/fabric.mod.json @@ -28,5 +28,8 @@ "fabric-api-base": "*", "fabric-networking-api-v1": "*" }, - "description": "Legacy Networking packet hooks and registries, superseded by fabric-networking-api-v1." + "description": "Legacy Networking packet hooks and registries, superseded by fabric-networking-api-v1.", + "custom": { + "fabric-api:module-lifecycle": "deprecated" + } } diff --git a/fabric-object-builder-api-v1/src/main/resources/fabric.mod.json b/fabric-object-builder-api-v1/src/main/resources/fabric.mod.json index 744ae1bc6..6f07272be 100644 --- a/fabric-object-builder-api-v1/src/main/resources/fabric.mod.json +++ b/fabric-object-builder-api-v1/src/main/resources/fabric.mod.json @@ -24,5 +24,8 @@ "mixins": [ "fabric-object-builder-v1.mixins.json" ], - "accessWidener" : "fabric-object-builder-api-v1.accesswidener" + "accessWidener" : "fabric-object-builder-api-v1.accesswidener", + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-object-builders-v0/src/main/resources/fabric.mod.json b/fabric-object-builders-v0/src/main/resources/fabric.mod.json index e4da46d34..f3a301595 100644 --- a/fabric-object-builders-v0/src/main/resources/fabric.mod.json +++ b/fabric-object-builders-v0/src/main/resources/fabric.mod.json @@ -23,5 +23,8 @@ "description": "Legacy builders for objects vanilla has locked down, superseded by fabric-object-builder-api-v1.", "mixins": [ "fabric-object-builders-v0.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "deprecated" + } } diff --git a/fabric-particles-v1/src/main/resources/fabric.mod.json b/fabric-particles-v1/src/main/resources/fabric.mod.json index 49c85e272..0d63f2ff3 100644 --- a/fabric-particles-v1/src/main/resources/fabric.mod.json +++ b/fabric-particles-v1/src/main/resources/fabric.mod.json @@ -8,5 +8,8 @@ }, "mixins": [ "fabric-particles-v1.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-registry-sync-v0/src/main/resources/fabric.mod.json b/fabric-registry-sync-v0/src/main/resources/fabric.mod.json index 18b149852..0cc78ed9b 100644 --- a/fabric-registry-sync-v0/src/main/resources/fabric.mod.json +++ b/fabric-registry-sync-v0/src/main/resources/fabric.mod.json @@ -28,5 +28,8 @@ "client": [ "net.fabricmc.fabric.impl.registry.sync.FabricRegistryClientInit" ] + }, + "custom": { + "fabric-api:module-lifecycle": "stable" } } diff --git a/fabric-renderer-api-v1/src/main/resources/fabric.mod.json b/fabric-renderer-api-v1/src/main/resources/fabric.mod.json index 501a70e68..61e4f8592 100644 --- a/fabric-renderer-api-v1/src/main/resources/fabric.mod.json +++ b/fabric-renderer-api-v1/src/main/resources/fabric.mod.json @@ -24,5 +24,8 @@ "mixins": [ "fabric-renderer-api-v1.mixins.json", "fabric-renderer-api-v1.debughud.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-renderer-indigo/src/main/resources/fabric.mod.json b/fabric-renderer-indigo/src/main/resources/fabric.mod.json index cc58f9fb1..f8a08d113 100755 --- a/fabric-renderer-indigo/src/main/resources/fabric.mod.json +++ b/fabric-renderer-indigo/src/main/resources/fabric.mod.json @@ -29,5 +29,8 @@ "client": [ "net.fabricmc.fabric.impl.client.indigo.Indigo" ] + }, + "custom": { + "fabric-api:module-lifecycle": "stable" } } diff --git a/fabric-renderer-registries-v1/src/main/resources/fabric.mod.json b/fabric-renderer-registries-v1/src/main/resources/fabric.mod.json index 16a0173c1..2ed23dcb8 100644 --- a/fabric-renderer-registries-v1/src/main/resources/fabric.mod.json +++ b/fabric-renderer-registries-v1/src/main/resources/fabric.mod.json @@ -23,5 +23,8 @@ "description": "Registries for entity and block renderers.", "mixins": [ "fabric-renderer-registries-v1.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-rendering-data-attachment-v1/src/main/resources/fabric.mod.json b/fabric-rendering-data-attachment-v1/src/main/resources/fabric.mod.json index ccc4e8e39..362f2c0b5 100644 --- a/fabric-rendering-data-attachment-v1/src/main/resources/fabric.mod.json +++ b/fabric-rendering-data-attachment-v1/src/main/resources/fabric.mod.json @@ -22,5 +22,8 @@ "description": "Thread-safe hooks for block entity data use during terrain rendering.", "mixins": [ "fabric-rendering-data-attachment-v1.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-rendering-fluids-v1/src/main/resources/fabric.mod.json b/fabric-rendering-fluids-v1/src/main/resources/fabric.mod.json index 5708d98a6..e0705bbcb 100644 --- a/fabric-rendering-fluids-v1/src/main/resources/fabric.mod.json +++ b/fabric-rendering-fluids-v1/src/main/resources/fabric.mod.json @@ -25,5 +25,8 @@ "description": "Hooks for registering fluid renders.", "mixins": [ "fabric-rendering-fluids-v1.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-rendering-v0/src/main/resources/fabric.mod.json b/fabric-rendering-v0/src/main/resources/fabric.mod.json index 0290e6039..3a9d8eef4 100644 --- a/fabric-rendering-v0/src/main/resources/fabric.mod.json +++ b/fabric-rendering-v0/src/main/resources/fabric.mod.json @@ -26,5 +26,8 @@ "fabric-api-base": "*", "fabric-rendering-v1": "*" }, - "description": "Hooks and registries for rendering-related things." + "description": "Hooks and registries for rendering-related things.", + "custom": { + "fabric-api:module-lifecycle": "deprecated" + } } diff --git a/fabric-rendering-v1/src/main/resources/fabric.mod.json b/fabric-rendering-v1/src/main/resources/fabric.mod.json index 5b21b99b5..a17c8cd5c 100644 --- a/fabric-rendering-v1/src/main/resources/fabric.mod.json +++ b/fabric-rendering-v1/src/main/resources/fabric.mod.json @@ -22,5 +22,8 @@ "description": "Hooks and registries for rendering-related things.", "mixins": [ "fabric-rendering-v1.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-resource-loader-v0/src/main/resources/fabric.mod.json b/fabric-resource-loader-v0/src/main/resources/fabric.mod.json index 291900737..60c01dfbe 100644 --- a/fabric-resource-loader-v0/src/main/resources/fabric.mod.json +++ b/fabric-resource-loader-v0/src/main/resources/fabric.mod.json @@ -21,5 +21,8 @@ "description": "Asset and data resource loading.", "mixins": [ "fabric-resource-loader-v0.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-tag-extensions-v0/src/main/resources/fabric.mod.json b/fabric-tag-extensions-v0/src/main/resources/fabric.mod.json index 125cb5310..fae990293 100644 --- a/fabric-tag-extensions-v0/src/main/resources/fabric.mod.json +++ b/fabric-tag-extensions-v0/src/main/resources/fabric.mod.json @@ -23,5 +23,8 @@ "description": "Hooks for tags.", "mixins": [ "fabric-tag-extensions-v0.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-textures-v0/src/main/resources/fabric.mod.json b/fabric-textures-v0/src/main/resources/fabric.mod.json index 1d3156ebf..9c22c5c3c 100644 --- a/fabric-textures-v0/src/main/resources/fabric.mod.json +++ b/fabric-textures-v0/src/main/resources/fabric.mod.json @@ -22,5 +22,8 @@ "description": "Hooks for texture loading and registration.", "mixins": [ "fabric-textures-v0.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/fabric-tool-attribute-api-v1/src/main/resources/fabric.mod.json b/fabric-tool-attribute-api-v1/src/main/resources/fabric.mod.json index 5211c0d89..2f3daac52 100644 --- a/fabric-tool-attribute-api-v1/src/main/resources/fabric.mod.json +++ b/fabric-tool-attribute-api-v1/src/main/resources/fabric.mod.json @@ -28,5 +28,8 @@ "description": "Dynamic atttributes for tools.", "mixins": [ "fabric-tool-attribute-api-v1.mixins.json" - ] + ], + "custom": { + "fabric-api:module-lifecycle": "stable" + } } diff --git a/gradle/module-validation.gradle b/gradle/module-validation.gradle new file mode 100644 index 000000000..a1ed31e8b --- /dev/null +++ b/gradle/module-validation.gradle @@ -0,0 +1,61 @@ +import groovy.json.JsonSlurper + +/* + * This buildscript contains tasks related to the validation of each module in fabric api. + * + * Right now this task verifies each Fabric API module has a module lifecycle specified. + * More functionality will probably be added in the future. + */ + +subprojects { + // Create the task + task validateModules(type: ValidateModuleTask) +} + +/** + * Verifies that each module has the required custom values for module lifecycle in it's FMJ. + * + *

Example: + *

{@code
+ * "custom": {
+ *   "fabric-api:module-lifecycle": "stable"
+ * }
+ * }
+ */ +class ValidateModuleTask extends DefaultTask { + ValidateModuleTask() { + group = "verification" + + // Hook up validation to check task + project.tasks.check.dependsOn(this) + } + + @TaskAction + void validate() { + def json = new JsonSlurper().parse(project.file("src/main/resources/fabric.mod.json") as File) as Map>; + + if (json.custom == null) { + throw new GradleException("Module ${project} does not have a custom value containing module lifecycle!") + } + + def moduleLifecycle = json.custom.get("fabric-api:module-lifecycle") + + if (moduleLifecycle == null) { + throw new GradleException("Module ${project} does not have module lifecycle in custom values!") + } + + if (!moduleLifecycle instanceof String) { + throw new GradleException("Module ${project} has an invalid module lifecycle value. The value must be a string but read a ${moduleLifecycle.class}") + } + + // Validate the lifecycle value + switch (moduleLifecycle) { + case "stable": + case "experimental": + case "deprecated": + break; + default: + throw new GradleException("Module ${project} has an invalid module lifecycle ${json.custom.get('fabric-api:module-lifecycle')}"); + } + } +} diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 490fda8577df6c95960ba7077c43220e5bb2c0d9..e708b1c023ec8b20f512888fe07c5bd3ff77bb8f 100644 GIT binary patch delta 6763 zcmY*d1yoeux`&}Vq&vkKkdST|x*Texk(LmoVTd`>NXyV2GNg!rf(VL8i*$EN2vQ>@ z;N#D`_q}`1+H37!e0#5N@4e1G>wMk)I9~^G>X1a_WjI_~vbb1S(*#&p%2+6`3073w z_+8Wx5fspSazTIgyF^r`bS;8?ttUY=Y16txqx|`pNOoTEXlylV?ZsN$4tQ-aeaKtq;EDcj#ufS~X5l)PmBL0VS*h=y3Li+qdct?J z?FcClysNWmO;%pTGK&0{S_(f?(9-*~A4I!CEfl8GR%`}qg?-86`CE5zW!0SOyaivY zkiRhoaHaER6Q_#*#;TWTrMbR`wnw-+IwyT}G_Z5l`tjySt-xO`<&)UUZwX2Ld8F2m zJ}lBiid@DLwV|>iW$We*nVYK+pYM|g16_-dViOg5hU z12mN~ZOI~wq~?bH6`?&%QPx%Oem!8RCQF5u9v+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gvKKp$*XFNkLCVpjif5VL#uHV?}rz^1OUp{8J zv&gY=R&5-aN=IK6q;@g@^MEjxT|YSY|MX{cx43QNhyNcTD9YxuQ}DbE2k%G{C2A% z^2{wqtCZC-TX9yZzh}xx#&%u5_yzSEs-4T|C$pCU^exX@IDQwClyo5F@jl_pA6>Lg zTaXO1$uN>mB4<BU%PB~yHzBhvIW`e)@;ix=~7`*mAwDeF|-t()O2fS80a{h!&( z-)YQ$p8UW&WI!M<_080ldy13ke}1s>@L2zo`n%=_x={QZyaPl`34khC{wrsuo`W(T z-pGMR4}sJf3c&m)11O*4uf+%?|9l3rF}VDyYAh{xatrHx5}jTw0mnbE(J3ZTPK09LaMpfK|r ztHF}_#>%&&AoE5Hz?lzUrQFW=K{pcX@E3bfu%WJP_io^ zHZKM0`>Wi+0L20Y&@j&c((?E#>4BYjbr8NUfQe@U3>M@-DSkIN96){(oLpc4o%!Eb zWQ(F8*-wA*F<`$a2;vUD!M4R0pyAMe@fJWHK?+DNaf3P{Zmd61jKK6F1yHxd0HTe( zu@09sK>cxlQ5Mj^QUCyk0d$yhQ{hi%1b$(-LBG>)4VCp}iW`JiKDgO5h-Coz zSN*jf0mQ2Ups7w^znc>NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windows variants - -if not "%OS%" == "Windows_NT" goto win9xME_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega