Class VersionParser

java.lang.Object
io.spring.initializr.generator.version.VersionParser

public class VersionParser extends Object
Parser for Version and VersionRange that allows to resolve the minor and patch value against a configurable list of "latest versions".

For example a parser that is configured with 1.3.7.RELEASE and 1.4.2.RELEASE as latest versions can parse 1.3.x.RELEASE to 1.3.7.RELEASE. Note that the qualifier is important here: 1.3.8.BUILD-SNAPSHOT would be parsed as 1.3.999.BUILD-SNAPSHOT as the parser doesn't know the latest BUILD-SNAPSHOT in the 1.3.x release line.

Author:
Stephane Nicoll