1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-02 06:32:59 +00:00

Add back inputs on processResources

I kinda thought that Gradle would be smart enough to know that these
were input (given they're passed to expand), but apparently not :/.
This commit is contained in:
Jonathan Coates
2025-01-14 21:25:33 +00:00
parent 62c9e5b08f
commit 5ba7f99326
4 changed files with 12 additions and 0 deletions

View File

@@ -40,6 +40,8 @@ dependencies {
}
tasks.processResources {
inputs.property("gitHash", cct.gitHash)
var props = mapOf("gitContributors" to cct.gitContributors.get().joinToString("\n"))
filesMatching("data/computercraft/lua/rom/help/credits.md") { expand(props) }
}

View File

@@ -220,6 +220,8 @@ loom {
}
tasks.processResources {
inputs.property("modVersion", modVersion)
var props = mapOf("version" to modVersion)
filesMatching("fabric.mod.json") { expand(props) }

View File

@@ -190,6 +190,9 @@ dependencies {
// Compile tasks
tasks.processResources {
inputs.property("modVersion", modVersion)
inputs.property("forgeVersion", libs.versions.forge)
var props = mapOf(
"forgeVersion" to libs.versions.forge.get(),
"file" to mapOf("jarVersion" to modVersion),