You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2023/08/15 10:28:22 UTC

[camel-quarkus] branch main updated: Fix compareVersion in sanity-checks.groovy #5165

This is an automated email from the ASF dual-hosted git repository.

ppalaga pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new 2e17b12ffd Fix compareVersion in sanity-checks.groovy #5165
2e17b12ffd is described below

commit 2e17b12ffd1db9ae796bb99e930bed78826d9146
Author: Zheng Feng <zh...@gmail.com>
AuthorDate: Thu Aug 10 15:52:41 2023 +0800

    Fix compareVersion in sanity-checks.groovy #5165
---
 tooling/scripts/sanity-checks.groovy | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tooling/scripts/sanity-checks.groovy b/tooling/scripts/sanity-checks.groovy
index 6f87b821dc..06b1a39764 100644
--- a/tooling/scripts/sanity-checks.groovy
+++ b/tooling/scripts/sanity-checks.groovy
@@ -51,7 +51,8 @@ if (!badDeps.isEmpty()) {
 }
 
 // check jvmSince and nativeCheck not newer than current SNAPSHOT version
-final String currentVersion = project.version - '-SNAPSHOT'
+def versionRegex = ~/\-.*/
+final String currentVersion = project.version - versionRegex
 final String jvmSince    = project.properties['camel.quarkus.jvmSince']
 final String nativeSince = project.properties['camel.quarkus.nativeSince']