From 9d2f10bf7c2dc1b1aad01f12a1976b45f2d0d560 Mon Sep 17 00:00:00 2001 From: deirn Date: Thu, 27 May 2021 07:19:49 +0700 Subject: [PATCH] replace + from impl mod version with - to fix semver error --- gradle/impl.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/impl.gradle b/gradle/impl.gradle index 624a654..3fcce2a 100644 --- a/gradle/impl.gradle +++ b/gradle/impl.gradle @@ -7,7 +7,7 @@ if (!implFor.empty) { zipTree(implFor.first()).matching { PatternFilterable filter -> filter.include "fabric.mod.json" }.each { - version = version + "+" + new JsonSlurper().parse(it)["version"] + version = version + "+" + (new JsonSlurper().parse(it)["version"] as String).replace('+', '-') } }