Skip to content

Commit

Permalink
chore: separate dep ver from required dep ver for neoforge/fabric
Browse files Browse the repository at this point in the history
  • Loading branch information
desht committed Jul 31, 2024
1 parent 7c7b13d commit 803d097
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
5 changes: 4 additions & 1 deletion fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ processResources {
inputs.property "version", project.version

filesMatching("fabric.mod.json") {
expand "version": project.version
expand "version": project.version,
"archversion": project.architectury_version,
"fabricapiversionrange": project.fabric_api_version_range,
"mcversion": project.minecraft_version
}
}

Expand Down
8 changes: 4 additions & 4 deletions fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"ftbfiltersystem.mixins.json"
],
"depends": {
"fabric": "*",
"minecraft": ">=1.20.1",
"architectury": ">=9.1.12",
"ftblibrary": ">=2100.1.4"
"fabric": "${fabricapiversionrange}",
"minecraft": "~${mcversion}",
"architectury": ">=${archversion}",
"ftblibrary": ">=${ftb_library_version}"
},
"breaks": {
"jei": "<19.5.0.40"
Expand Down
6 changes: 4 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ minecraft_version=1.21
architectury_version=13.0.2

fabric_loader_version=0.15.11
fabric_api_version=0.100.1+1.21
fabric_api_version=0.100.8+1.21
fabric_api_version_range=0.100.1+1.21

ftb_library_version=2100.1.4

#forge_version=49.0.31

neoforge_version=21.0.133-beta
neoforge_version=21.0.146
neoforge_version_range=21.0.143
# https://maven.neoforged.net/#/releases/net/neoforged/fancymodloader/loader
neoforge_loader_version=4

Expand Down
5 changes: 3 additions & 2 deletions neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ processResources {
filesMatching("META-INF/neoforge.mods.toml") {
expand "version": project.version,
"archversion": project.architectury_version,
"neoforgeversion": project.neoforge_version,
"neoforgeversionrange": project.neoforge_version_range,
"neoforgeloaderversion": project.neoforge_loader_version,
"mcversion": project.minecraft_version
"mcversion": project.minecraft_version,
"ftblibraryversion": project.ftb_library_version
}
}

Expand Down
4 changes: 2 additions & 2 deletions neoforge/src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Smart and highly configurable item filtering system with useful GUI configuratio
[[dependencies.ftbfiltersystem]]
modId = "neoforge"
type = "required"
versionRange = "[${neoforgeversion},)"
versionRange = "${neoforgeversionrange}"
ordering = "NONE"
side = "BOTH"

Expand All @@ -37,7 +37,7 @@ side = "BOTH"
[[dependencies.ftbfiltersystem]]
modId = "ftblibrary"
type = "required"
versionRange = "[${ftb_library_version},)"
versionRange = "[${ftblibraryversion},)"
ordering = "AFTER"
side = "BOTH"

Expand Down

0 comments on commit 803d097

Please sign in to comment.