Fix versions in poms, etc, unmute and fix appropriate test

This commit is contained in:
Ilya Chernikov
2022-04-19 16:36:51 +02:00
parent 24f3c7dc7d
commit 352fa7540c
24 changed files with 26 additions and 27 deletions
@@ -33,7 +33,7 @@ import javax.xml.parsers.SAXParserFactory
@WithMutedInDatabaseRunTest
class KotlinVersionsTest : KtUsefulTestCase() {
fun testVersionsAreConsistent() {
val versionPattern = "(\\d+)\\.(\\d+)(\\.(\\d+)|-SNAPSHOT)?".toRegex()
val versionPattern = "(\\d+)\\.(\\d+)(\\.(\\d+))?(?:-(\\p{Alpha}*\\p{Alnum}|[\\p{Alpha}-]*))?(?:-(\\d+))?".toRegex()
data class Version(val major: Int, val minor: Int, val patch: Int?, val versionString: String, val source: String) {
fun isConsistentWith(other: Version): Boolean {