Ting-Yuan Huang
10/06/2021, 6:55 PM2.0.0
for the next release, instead of 1.6.0-1.0.1
. We tried a range of versioning schemes and tested with Gradle's VersionNumber
, and it seems to be the best option.
Here are some examples that we tried and they didn't work (return false):
VersionNumber.parse("1.6.0-1.0.1") > VersionNumber.parse("1.6.0-1.0.1-RC")
VersionNumber.parse("1.6.0-1.0.1") > VersionNumber.parse("1.6.0-RC-1.0.1")
VersionNumber.parse("2.0.0+1.6.0") > VersionNumber.parse("2.0.0-RC+1.6.0")
VersionNumber.parse("2.0.0+1.6.0") > VersionNumber.parse("2.0.0+1.6.0-RC")
Note that the 2.0.0
release doesn't change that much; It's bumped so that it is greater than the Kotlin version prefix (1.5.31) we have currently.