maven/internal/maven_repository.bzl
def _create_artifact_from_coordinate(coord, disambiguate):
    """Create an dict representation of the coordinate.
    Args:
      coord: string - A colon-separated string. Under normal cases,
      there should be 3 parts.  If an artifact was chosen by some
      resolution strategy, it may take the form such as
      <code>io.grpc:grpc-core:[1.2.0] -> 1.2.0</code>
    Returns: !dict<string,string> - {ws_name: string,
                                     group:string,
                                     group_name: string,
                                     version: string,
                                     coordinate: string,
                                     sha1: None}
    """
    #print("COORD: '%s'" % coord)
    mapping = coord.split(" -> ")
    artifact = mapping[0]
    parts = artifact.split(":")
    if  len(parts) != 3:
        fail("Should take the form 'GROUP:NAME:VERSION': " + coord, "deps")
    group = parts[0]
    name = parts[1]
    version = parts[2]
    if len(mapping) == 2:
        version = mapping[1]
    coordinate = ":".join([group, name, version])
    if disambiguate:
        ws_name = _format_ws_name(group, name, version)
    else:
        ws_name = _format_ws_name(group, name)

    return {
        "ws_name": ws_name,
        "group": group,
        "name": name,
        "group_name": group + ":" + name,
        "version": version,
        "coordinate": coordinate,
        "sha1": None,
    }
Create an dict representation of the coordinate.
    Args:
      coord: string - A colon-separated string. Under normal cases,
      there should be 3 parts.  If an artifact was chosen by some
      resolution strategy, it may take the form such as
      <code>io.grpc:grpc-core:[1.2.0] -> 1.2.0</code>
    Returns: !dict<string,string> - {ws_name: string,
                                     group:string,
                                     group_name: string,
                                     version: string,
                                     coordinate: string,
                                     sha1: None}
    
Create an dict representation of the coordinate.
Args:
coord: string - A colon-separated string. Under normal cases,
there should be 3 parts.
Create an dict representation of the coordinate . Args : coord : string - A colon - separated string . Under normal cases there should be 3 parts .
def _create_artifact_from_coordinate(coord, disambiguate):
    mapping = coord.split(" -> ")
    artifact = mapping[0]
    parts = artifact.split(":")
    if  len(parts) != 3:
        fail("Should take the form 'GROUP:NAME:VERSION': " + coord, "deps")
    group = parts[0]
    name = parts[1]
    version = parts[2]
    if len(mapping) == 2:
        version = mapping[1]
    coordinate = ":".join([group, name, version])
    if disambiguate:
        ws_name = _format_ws_name(group, name, version)
    else:
        ws_name = _format_ws_name(group, name)
    return {
        "ws_name": ws_name,
        "group": group,
        "name": name,
        "group_name": group + ":" + name,
        "version": version,
        "coordinate": coordinate,
        "sha1": None,
    }
def _create_artifact_from_coordinate ( coord , disambiguate ) : mapping = coord . split ( " -> " ) artifact = mapping [ 0 ] parts = artifact . split ( ":" ) if len ( parts ) != 3 : fail ( "Should take the form 'GROUP:NAME:VERSION': " + coord , "deps" ) group = parts [ 0 ] name = parts [ 1 ] version = parts [ 2 ] if len ( mapping ) == 2 : version = mapping [ 1 ] coordinate = ":" . join ( [ group , name , version ] ) if disambiguate : ws_name = _format_ws_name ( group , name , version ) else : ws_name = _format_ws_name ( group , name ) return { "ws_name" : ws_name , "group" : group , "name" : name , "group_name" : group + ":" + name , "version" : version , "coordinate" : coordinate , "sha1" : None , }
Create an dict representation of the coordinate.
Create an dict representation of the coordinate .
"""Create an dict representation of the coordinate.
    Args:
      coord: string - A colon-separated string. Under normal cases,
      there should be 3 parts.  If an artifact was chosen by some
      resolution strategy, it may take the form such as
      <code>io.grpc:grpc-core:[1.2.0] -> 1.2.0</code>
    Returns: !dict<string,string> - {ws_name: string,
                                     group:string,
                                     group_name: string,
                                     version: string,
                                     coordinate: string,
                                     sha1: None}
    """ #print("COORD: '%s'" % coord)
coord
disambiguate