From 7ab2e8619896d91527d5039671ed9e59c8f32e1a Mon Sep 17 00:00:00 2001 From: James Groom Date: Wed, 24 Apr 2024 06:41:22 +1000 Subject: [PATCH] Set `escapeBackslash` for `fabric.mod.json` variable expansion --- build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 84469690..f2dababd 100644 --- a/build.gradle +++ b/build.gradle @@ -45,7 +45,9 @@ processResources { inputs.property "version", project.version filesMatching("fabric.mod.json") { - expand "version": project.version + expand("version": project.version) { + escapeBackslash = true + } } } @@ -85,4 +87,4 @@ publishing { // The repositories here will be used for publishing your artifact, not for // retrieving dependencies. } -} \ No newline at end of file +}