-
Notifications
You must be signed in to change notification settings - Fork 14
Versions
mkristian edited this page Sep 20, 2012
·
4 revisions
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.