Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Prevent tag deserialization errors (#1561)

Wouter Born7a2695071bb0
diff --git a/build.gradle b/build.gradle
index 52fabfc7a..7831098cf 100644
--- a/build.gradle
+++ b/build.gradle
@@ -16,6 +16,8 @@ scmVersion {
}
tag {
prefix.set('')
+ // This deserializer prevents errors when tags exist that cannot be deserialized
+ deserializer({config, position, tagName -> tagName ==~ /^[0-9]+\.[0-9]+\.[0-9]+$/ ? tagName : "1.1.0" })
initialVersion({config, position -> '1.2.0'})
}
}