maven/internal/maven_repository.bzl
def _create_artifact_from_transitive_dependency(dep, disambiguate = False):
    """Create an dict representation of the dependency.
    Args:
      dep: string - A colon-separated string.  There must be a least 4 parts. The first part is the
           sha1 hash value OR the special token 'omit' (case insensitive).
    Returns: !dict<string,string>
    """

    # Split the dependency string into compoennt parts.  There should
    # always be 4 parts.
    parts = dep.split(":")
    if len(parts) < 4:
        fail("Transitive dependency entries must be in a colon-delimited form having exactly 4 fields: HASH:GROUP:NAME:VERSION.  HASH can be an sha1 value or the special token 'OMIT'")

    # Pop the hash off the dependency.  Remainder is the maven
    # coordinate.
    hash = parts.pop(0)

    # Go ahead and build the artifact dict now so we can add fields to
    # it shortly.
    artifact = _create_artifact_from_coordinate(":".join(parts), disambiguate)

    # Examine the hash.  If it looks like a sha1, great.  Otherwise
    # check it against the list of special tokens (currently only 1:
    # omit)
    if len(hash) == 40:
        artifact["sha1"] = hash
    else:
        if hash.lower() == 'omit':
            artifact["omit"] = True
        else:
            fail("Bad sha1 value %r in %r" % (hash, dep), "transitive_deps")

    # Done
    return artifact
Create an dict representation of the dependency.
    Args:
      dep: string - A colon-separated string.  There must be a least 4 parts. The first part is the
           sha1 hash value OR the special token 'omit' (case insensitive).
    Returns: !dict<string,string>
    
Create an dict representation of the dependency.
Create an dict representation of the dependency .
def _create_artifact_from_transitive_dependency(dep, disambiguate = False):
    parts = dep.split(":")
    if len(parts) < 4:
        fail("Transitive dependency entries must be in a colon-delimited form having exactly 4 fields: HASH:GROUP:NAME:VERSION.  HASH can be an sha1 value or the special token 'OMIT'")
    hash = parts.pop(0)
    artifact = _create_artifact_from_coordinate(":".join(parts), disambiguate)
    if len(hash) == 40:
        artifact["sha1"] = hash
    else:
        if hash.lower() == 'omit':
            artifact["omit"] = True
        else:
            fail("Bad sha1 value %r in %r" % (hash, dep), "transitive_deps")
    return artifact
def _create_artifact_from_transitive_dependency ( dep , disambiguate = False ) : parts = dep . split ( ":" ) if len ( parts ) < 4 : fail ( "Transitive dependency entries must be in a colon-delimited form having exactly 4 fields: HASH:GROUP:NAME:VERSION.  HASH can be an sha1 value or the special token 'OMIT'" ) hash = parts . pop ( 0 ) artifact = _create_artifact_from_coordinate ( ":" . join ( parts ) , disambiguate ) if len ( hash ) == 40 : artifact [ "sha1" ] = hash else : if hash . lower ( ) == 'omit' : artifact [ "omit" ] = True else : fail ( "Bad sha1 value %r in %r" % ( hash , dep ) , "transitive_deps" ) return artifact
Create an dict representation of the dependency.
Create an dict representation of the dependency .
"""Create an dict representation of the dependency.
    Args:
      dep: string - A colon-separated string.  There must be a least 4 parts. The first part is the
           sha1 hash value OR the special token 'omit' (case insensitive).
    Returns: !dict<string,string>
    """ # Split the dependency string into compoennt parts.  There should # always be 4 parts. # Pop the hash off the dependency.  Remainder is the maven # coordinate. # Go ahead and build the artifact dict now so we can add fields to # it shortly. # Examine the hash.  If it looks like a sha1, great.  Otherwise # check it against the list of special tokens (currently only 1: # omit) # Done
dep
A colon-separated string.  There must be a least 4 parts. The first part is the
sha1 hash value OR the special token 'omit' (case insensitive).
A colon - separated string . There must be a least 4 parts . The first part is the sha1 hash value OR the special token ' omit ' ( case insensitive ) .
disambiguate