File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ val libs = file("libs")
4242val targets = listOf (" fabric.mod.json" )
4343val replacements = file(" gradle.properties" ).inputStream().use { stream ->
4444 Properties ().apply { load(stream) }
45- }.map { (k, v) -> k.toString() to v.toString() }.toMap()
45+ }.map { (k, v) -> k.toString() to v.toString() }.toMap().toMutableMap()
4646
4747plugins {
4848 kotlin(" jvm" ) version " 2.3.0"
@@ -62,6 +62,7 @@ version = if (isDevBuild && buildNum != null) {
6262} else {
6363 modVersion
6464}
65+ replacements[" modVersion" ] = version.toString()
6566
6667base.archivesName = modId
6768
@@ -226,6 +227,7 @@ tasks {
226227 }
227228
228229 processResources {
230+ inputs.properties(replacements)
229231 filesMatching(targets) { expand(replacements) }
230232
231233 // Forces the task to always run
You can’t perform that action at this time.
0 commit comments