diff --git a/build.gradle b/build.gradle index f9f18baa03..87887283d9 100644 --- a/build.gradle +++ b/build.gradle @@ -62,6 +62,9 @@ def dependencies(DependencyHandler deps) { exclude(group: "io.github.fabricators_of_create") // avoid duplicate Porting Lib } + // Stub mod to allow addons to depend on a constant version between sub-patches + deps.include(project(":stubMod")) + deps.modApi(deps.include("me.alphamode:ForgeTags:$forge_tags_version")) deps.modApi(deps.include("com.electronwill.night-config:core:$night_config_version")) deps.modApi(deps.include("com.electronwill.night-config:toml:$night_config_version")) diff --git a/settings.gradle b/settings.gradle index 049598aa09..6e095df8f9 100644 --- a/settings.gradle +++ b/settings.gradle @@ -5,3 +5,5 @@ pluginManagement { gradlePluginPortal() } } + +include "stubMod" diff --git a/stubMod/build.gradle b/stubMod/build.gradle new file mode 100644 index 0000000000..ede41dc866 --- /dev/null +++ b/stubMod/build.gradle @@ -0,0 +1,16 @@ +plugins { + id("java") +} + +group = maven_group +archivesBaseName = "create-fabric-stub" + +version = mod_version + +processResources { + filesMatching("fabric.mod.json") { + expand "version": mod_version + } + + duplicatesStrategy = DuplicatesStrategy.WARN +} diff --git a/stubMod/src/main/resources/fabric.mod.json b/stubMod/src/main/resources/fabric.mod.json new file mode 100644 index 0000000000..90d780349f --- /dev/null +++ b/stubMod/src/main/resources/fabric.mod.json @@ -0,0 +1,29 @@ +{ + "schemaVersion": 1, + "id": "create-fabric", + "version": "${version}", + + "name": "Create - Stub Version Jar", + "description": "Technology that empowers the player. This is used to allow other mods to depend on sub-patches", + "authors": [ + "Fabricators of Create", + "Creators of Create" + ], + "contact": { + "issues": "https://github.com/Fabricators-of-Create/Create/issues", + "sources": "https://github.com/Fabricators-of-Create/Create" + }, + + "license": "MIT", + + "environment": "*", + + "custom": { + "modmenu": { + "badges": [ "library" ], + "parent": { + "id": "create" + } + } + } +}