Skip to content

Commit af92600

Browse files
committed
set dev build in the mod json
1 parent 0639b0a commit af92600

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ val libs = file("libs")
4242
val targets = listOf("fabric.mod.json")
4343
val 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

4747
plugins {
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

6667
base.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

0 commit comments

Comments
 (0)