Class ConfigurableVersionSelector.Highest

java.lang.Object
org.eclipse.aether.util.graph.transformer.ConfigurableVersionSelector.Highest
All Implemented Interfaces:
ConfigurableVersionSelector.SelectionStrategy
Enclosing class:
ConfigurableVersionSelector

Selection strategy that selects "highest" version.

If winner is level 1 or less (is direct dependency of root), it is kept as winner (as in "real life" it means dependency is enlisted in POM). Then candidate is checked for same thing, and selected if it is direct dependency. Then if both, candidate and winner carries same version (so are same GACEV, same artifact) then "nearest" is selected. Finally, if none of above, higher version is selected out of two.