Avoid double brackets

Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
shedaniel
2021-06-20 20:47:18 +08:00
parent f3bf0a4207
commit 8a8b2d88e3

View File

@@ -279,7 +279,9 @@ def patchPom(groovy.util.Node node) {
// Patch all eclipse deps to use a strict version
if (groupId.startsWith("org.eclipse.")) {
def version = it.get("version").first().value().first()
it.get("version").first().value = new groovy.util.NodeList(["[$version]"])
if (!version.startsWith("[")) {
it.get("version").first().value = new groovy.util.NodeList(["[$version]"])
}
}
}
}