final class Version extends Comparable[Version]

Comparable version information.

The typical convention is to use 3 digit version numbers major.minor.patch, but 1 or two digits are also supported.

If no . is used it is interpreted as a single digit version number or as plain alphanumeric if it couldn't be parsed as a number.

It may also have a qualifier at the end for 2 or 3 digit version numbers such as "1.2-RC1". For 1 digit with qualifier, 1-RC1, it is interpreted as plain alphanumeric.

It has support for https://github.com/dwijnand/sbt-dynver format with + or - separator. The number of commits from the tag is handled as a numeric part. For example 1.0.0+3-73475dce26 is less than 1.0.0+10-ed316bd024 (3 < 10).

Source
Version.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Version
  2. Comparable
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Version(version: String)

Value Members

  1. def compareTo(other: Version): Int
    Definition Classes
    Version → Comparable
  2. def equals(o: Any): Boolean
    Definition Classes
    Version → AnyRef → Any
  3. def hashCode(): Int
    Definition Classes
    Version → AnyRef → Any
  4. def toString(): String
    Definition Classes
    Version → AnyRef → Any
  5. val version: String