Skip to content

Commit

Permalink
Instead of relying on a global placeholder, bake the version into the…
Browse files Browse the repository at this point in the history
… neoforge.mods.toml (#1207)
  • Loading branch information
shartte authored Jul 2, 2024
1 parent acab30d commit 650d3a0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions projects/neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,17 @@ dependencies {
}
}

processResources {
inputs.property("version", project.version)
filesMatching("META-INF/neoforge.mods.toml") {
expand([
"global": [
"neoForgeVersion": project.version
]
])
}
}

afterEvaluate {
artifacts {
modDevBundle(userdevJar) {
Expand Down

0 comments on commit 650d3a0

Please sign in to comment.