Skip to content

Commit 7ab2e86

Browse files
authored
Set escapeBackslash for fabric.mod.json variable expansion
1 parent c8dba6d commit 7ab2e86

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ processResources {
4545
inputs.property "version", project.version
4646

4747
filesMatching("fabric.mod.json") {
48-
expand "version": project.version
48+
expand("version": project.version) {
49+
escapeBackslash = true
50+
}
4951
}
5052
}
5153

@@ -85,4 +87,4 @@ publishing {
8587
// The repositories here will be used for publishing your artifact, not for
8688
// retrieving dependencies.
8789
}
88-
}
90+
}

0 commit comments

Comments
 (0)