Build: fix version sorting

Prevents us from incorrectly thinking the current version is
the bwc version.
This commit is contained in:
Nik Everett 2017-06-01 14:48:08 -04:00
parent 160a049930
commit a301bbbe8b
1 changed files with 1 additions and 5 deletions

View File

@ -24,7 +24,7 @@ import groovy.transform.Sortable
/**
* Encapsulates comparison and printing logic for an x.y.z version.
*/
@Sortable
@Sortable(includes=['id'])
public class Version {
final int major
@ -60,10 +60,6 @@ public class Version {
return "${major}.${minor}.${bugfix}${snapshotStr}"
}
public boolean equals(Version compareTo) {
return id == compareTo.id
}
public boolean before(String compareTo) {
return id < fromString(compareTo).id
}