File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -983,19 +983,7 @@ String getVersionFromFile() {
983983
984984String getProjectVersion () {
985985 if (versionFileExists()) {
986- String version = getVersionFromFile()
987- // If version is in 900+ series, treat it as a pre-release
988- Pattern pattern = Pattern . compile(" ^([0-9]+)\\ .([0-9]+)\\ .([0-9]+)\\ .([0-9]+)(.*)?\$ " )
989- Matcher matcher = pattern. matcher(version)
990- if (matcher. matches()) {
991- int lastNum = Integer . valueOf(matcher. group(4 ))
992- if (lastNum >= 900 ) {
993- // Convert 1.2.0.900+ to 1.2.0.0-rcX format
994- int rcNum = lastNum - 899
995- return matcher. group(1 ) + " ." + matcher. group(2 ) + " ." + matcher. group(3 ) + " .0-rc" + rcNum
996- }
997- }
998- return version
986+ return getVersionFromFile()
999987 }
1000988
1001989 try {
Original file line number Diff line number Diff line change 1- 1.5.2.0-rc1
1+ 1.5.2.1
You can’t perform that action at this time.
0 commit comments