Closed stelfrich closed 5 years ago
Why not the other way around, use VersionUtils.compare()
in all places where POM.compareTo()
is currently used? As @ctrueden mentioned on gitter:
It is in the wrong place. We can fix it.
Good point, @imagejan!
See also https://github.com/scijava/scijava-common/issues/334.
Use
POM.compareTo()
(introduded in https://github.com/scijava/scijava-common/commit/c02cca436460a11bbcde3fe51f062019153a756b) instead ofVersionUtils.compare()
when checking for newer/older versions of an artifact inAbstractCopyJarsMojo.java#L184
.