Skip to content

Commit

Permalink
build: Automate fabric.mod.json dependencies using the Gradle build…
Browse files Browse the repository at this point in the history
… script
  • Loading branch information
Steveplays28 committed Dec 1, 2023
1 parent b32847d commit 6678408
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ processResources {
filteringCharset "UTF-8"

filesMatching("fabric.mod.json") {
expand "version": project.version
expand "version": project.version, "supported_minecraft_version": project.supported_minecraft_version, "loader_version": project.loader_version, "fabric_version": project.fabric_version, "cloth_config_version": project.cloth_config_version, "modmenu_version": project.modmenu_version
}
}

Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
"realisticsleep.mixins.json"
],
"depends": {
"fabricloader": ">=0.14.8",
"fabricloader": ">=${loader_version}",
"minecraft": [
"1.19.x"
"${supported_minecraft_version}"
],
"cloth-config": ">=5.3.63",
"fabric": ">=0.48.0"
"cloth-config": ">=${cloth_config_version}",
"fabric": ">=${fabric_version}"
},
"suggests": {
"modmenu": ">=3.0.0"
"modmenu": ">=${modmenu_version}"
},
"conflicts": {
"tawct": "*",
Expand Down

0 comments on commit 6678408

Please sign in to comment.