mavendeps.py
def resolveDependencyConflict (dep1, dep2):
    """ Resolve given dependency conflict by sticking with the highest
    version that resolves the conflict.

    Returns the dependency object with the highest version that resolves
    the conflict.

    It raises an exception if it cannot resolve the conflict
    """
    cmpValue = vercmp.compare (dep1.coord.id, dep2.coord.id)
    newScope = MavenCoord.resolveScopeConflict (dep1.coord.scope, dep2.coord.scope)

    # same value? any of both will do
    if cmpValue == 0:
      dep1.coord.scope = newScope
      return dep1

    # dep1 > dep2
    if cmpValue > 0:
      if vercmp.satisfies (dep1.coord, dep2.coord):
        dep1.coord.scope = newScope
        return dep1

    # dep2 > dep1 or dep1 is higher and does not satisfies dep2
    if vercmp.satisfies (dep2.coord, dep1.coord):
      dep2.coord.scope = newScope
      return dep2

    raise Exception (
      "Could not resolve conflict! '%s' vs '%s'" % (dep1.coord.id, dep2.coord.id)
    )
 Resolve given dependency conflict by sticking with the highest
    version that resolves the conflict.

    Returns the dependency object with the highest version that resolves
    the conflict.

    It raises an exception if it cannot resolve the conflict
    
Resolve given dependency conflict by sticking with the highest
version that resolves the conflict.

Returns the dependency object with the highest version that resolves
the conflict.

It raises an exception if it cannot resolve the conflict
Resolve given dependency conflict by sticking with the highest version that resolves the conflict . Returns the dependency object with the highest version that resolves the conflict . It raises an exception if it cannot resolve the conflict
def resolveDependencyConflict (dep1, dep2):
    cmpValue = vercmp.compare (dep1.coord.id, dep2.coord.id)
    newScope = MavenCoord.resolveScopeConflict (dep1.coord.scope, dep2.coord.scope)
    if cmpValue == 0:
      dep1.coord.scope = newScope
      return dep1
    if cmpValue > 0:
      if vercmp.satisfies (dep1.coord, dep2.coord):
        dep1.coord.scope = newScope
        return dep1
    if vercmp.satisfies (dep2.coord, dep1.coord):
      dep2.coord.scope = newScope
      return dep2
    raise Exception (
      "Could not resolve conflict! '%s' vs '%s'" % (dep1.coord.id, dep2.coord.id)
    )
def resolveDependencyConflict ( dep1 , dep2 ) : cmpValue = vercmp . compare ( dep1 . coord . id , dep2 . coord . id ) newScope = MavenCoord . resolveScopeConflict ( dep1 . coord . scope , dep2 . coord . scope ) if cmpValue == 0 : dep1 . coord . scope = newScope return dep1 if cmpValue > 0 : if vercmp . satisfies ( dep1 . coord , dep2 . coord ) : dep1 . coord . scope = newScope return dep1 if vercmp . satisfies ( dep2 . coord , dep1 . coord ) : dep2 . coord . scope = newScope return dep2 raise Exception ( "Could not resolve conflict! '%s' vs '%s'" % ( dep1 . coord . id , dep2 . coord . id ) )
Resolve given dependency conflict by sticking with the highest
version that resolves the conflict.
Resolve given dependency conflict by sticking with the highest version that resolves the conflict .
""" Resolve given dependency conflict by sticking with the highest
    version that resolves the conflict.

    Returns the dependency object with the highest version that resolves
    the conflict.

    It raises an exception if it cannot resolve the conflict
    """ # same value? any of both will do # dep1 > dep2 # dep2 > dep1 or dep1 is higher and does not satisfies dep2
dep1
dep2