Skip to content

Commit

Permalink
fix: processResources on NeoForge now works
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamalam360 committed Oct 24, 2024
1 parent dc26d21 commit 8fcedeb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,16 @@ publishing {
}

processResources {
filesMatching("neoforge.mods.toml") {
expand "minecraft_version": project.minimum_minecraft_version,
filesMatching("META-INF/neoforge.mods.toml") {
expand "version": project.version,
"minecraft_version": project.minimum_minecraft_version,
"neoforge_version": libs.versions.neoforge.get(),
"architectury_version": libs.versions.architectury.get()
}

inputs.property "version", project.version
inputs.property "minecraft_version", project.minimum_minecraft_version
inputs.property "neoforge_version", libs.versions.neoforge.get()
inputs.property "architectury_version", libs.versions.architectury.get()
}

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 @@ -5,7 +5,7 @@ issueTrackerURL = "https://github.com/JamCoreModding/jamlib/issues"

[[mods]]
modId = "jamlib"
version = "${file.jarVersion}"
version = "${version}"
displayName = "JamLib"
displayURL = "https://github.com/JamCoreModding/jamlib"
logoFile = "icon.png"
Expand All @@ -15,7 +15,7 @@ description = '''The platform-agnostic library used in all of JamCore's mods'''
[[dependencies.jamlib]]
modId = "neoforge"
type = "required"
versionRange = "[21,)"
versionRange = "[${neoforge_version},)"
ordering = "NONE"
side = "BOTH"

Expand Down

0 comments on commit 8fcedeb

Please sign in to comment.