Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Versions

mkristian edited this page · 4 revisions
Clone this wiki locally

version conversions

mapping from rubygems like versions to maven version ranges. the maven version ranges uses following interval:

  • ( is start boundary excluding the boundery
  • [ is start boundary including the boundery
  • ) is end boundary excluding the boundery
  • ] is end boundary including the boundery

the conversion leaves maven version ranges as they are, i.e. the conversion is idempotent.

ruby maven
-- empty -- [0,)
!2.3.4 (2.3.4,)
=2.3.4 [2.3.4,2.3.4.0.0.0.0.1)
~>1.8.2 [1.8.2,1.8.99999]
~>1.8 [1.8,1.99999]
>1.2 (1.2,)
<1.2 [0,1.2)
>=1.2 [1.2,)
<=1.2 [0,1.2]
>=1.2, <2.0 [1.2,2.0)
>=1.2, <=2.0 [1.2,2.0]
>1.2, <2.0 (1.2,2.0)
>1.2, <=2.0 (1.2,2.0]

Important a version without operator like 1.2.3 will be a maven version, i.e. not a maven version range.

Something went wrong with that request. Please try again.