Skip to content

Commit 595cb6d

Browse files
author
Phillip Webb
committed
Fix version-type logic to deal with RCx form
1 parent f500e48 commit 595cb6d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

pom.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,11 @@
9999
<propertyregex property="version-type" override="true"
100100
input="${version-type}" regexp=".*\.(.*)" replace="\1" />
101101
<propertyregex property="version-type" override="true"
102-
input="${version-type}" regexp="(M)\d+" replace="\1ILESTONE" />
102+
input="${version-type}" regexp="(M)\d+" replace="MILESTONE" />
103103
<propertyregex property="version-type" override="true"
104-
input="${version-type}" regexp="BUILD-(.*)" replace="\1" />
104+
input="${version-type}" regexp="(RC)\d+" replace="MILESTONE" />
105+
<propertyregex property="version-type" override="true"
106+
input="${version-type}" regexp="BUILD-(.*)" replace="SNAPSHOT" />
105107
<stringutil string="${version-type}" property="profile">
106108
<lowercase />
107109
</stringutil>

spring-boot-cli/pom.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,11 @@
301301
<propertyregex property="version-type" override="true"
302302
input="${version-type}" regexp=".*\.(.*)" replace="\1" />
303303
<propertyregex property="version-type" override="true"
304-
input="${version-type}" regexp="(M)\d+" replace="\1ILESTONE" />
304+
input="${version-type}" regexp="(M)\d+" replace="MILESTONE" />
305305
<propertyregex property="version-type" override="true"
306-
input="${version-type}" regexp="BUILD-(.*)" replace="\1" />
306+
input="${version-type}" regexp="(RC)\d+" replace="MILESTONE" />
307+
<propertyregex property="version-type" override="true"
308+
input="${version-type}" regexp="BUILD-(.*)" replace="SNAPSHOT" />
307309
<stringutil string="${version-type}" property="repo">
308310
<lowercase />
309311
</stringutil>

0 commit comments

Comments
 (0)