]> source.dussan.org Git - poi.git/commitdiff
Adjust version-pattern used in task 'replaceVersion'
authorDominik Stadler <centic@apache.org>
Fri, 22 Oct 2021 14:32:03 +0000 (14:32 +0000)
committerDominik Stadler <centic@apache.org>
Fri, 22 Oct 2021 14:32:03 +0000 (14:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894481 13f79535-47bb-0310-9956-ffa450edef68

build.gradle

index 056d4cd63a27f9818c4087271ab7b788ca1870b2..68a503520ebc79feaa188583317264e3d5b140e0 100644 (file)
@@ -578,7 +578,7 @@ task replaceVersion() {
     var tokens = [
 //        [ 'sonar', '**/pom.xml', '(packaging>\\n\\s*<version>)[0-9.]+(?:-SNAPSHOT)?', "\\1${version}" ],
 //        [ 'sonar', '**/pom.xml', '(poi-parent&lt;/artifactId>\\n\\s*<version>)[0-9.]+(?:-SNAPSHOT)?', "\1${version}" ],
-        [ 'osgi', 'pom.xml', '(packaging>\\n\\s*<version>)[0-9.]+(?:-SNAPSHOT)?', "\\1${version}" ]
+        [ 'osgi', 'pom.xml', '(packaging>\\n\\s*<version>)[0-9.]+(?:-SNAPSHOT|-RC\\d+)?', "\\1${version}" ]
         // [ '.', 'build.gradle', ' version = \'[0-9.]+(?:-SNAPSHOT)?\'', " version = '${version}'" ]
     ]