Skip to content

Commit

Permalink
Merge branch 'refs/heads/mc1.18/fabric/stubMod' into mc1.18/fabric/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed May 24, 2024
2 parents 0737a4d + d6fb2cd commit 9ba709b
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down Expand Up @@ -149,7 +152,7 @@ sourceSets {
main {
resources {
srcDir("src/generated/resources")
exclude("src/generated/resources/.cache")
exclude(".cache")
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ pluginManagement {
gradlePluginPortal()
}
}

include "stubMod"
16 changes: 16 additions & 0 deletions stubMod/build.gradle
Original file line number Diff line number Diff line change
@@ -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
}
29 changes: 29 additions & 0 deletions stubMod/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}

0 comments on commit 9ba709b

Please sign in to comment.