maven/internal/maven_repository.bzl
def _format_rules_file(rtx, rule_name, configs, all_artifacts):
    """Generate the rules.bzl file content.
    Args:
      rule_name: string - The name of the rule (rtx.name)
      configs: !dict<string,!dict<string,!Artifact>>
      all_artifacts: !dict<string,!Artifact>
    Returns: string
    """
    lines = []
    lines.append("# AUTO_GENERATED, DO NOT EDIT")
    lines.append("load('@org_pubref_require_toolchain//:require.bzl', 'require')")
    lines.append("DEPS = {")
    for ws_name, artifact in all_artifacts.items():
        lines += _format_maven_jar(rtx, ws_name, artifact)
    lines.append("}")
    for name, artifacts in configs.items():
        lines += _format_config_def(rtx, rule_name + "_" + name, artifacts)
    return "\n".join(lines)
Generate the rules.bzl file content.
    Args:
      rule_name: string - The name of the rule (rtx.name)
      configs: !dict<string,!dict<string,!Artifact>>
      all_artifacts: !dict<string,!Artifact>
    Returns: string
    
Generate the rules.bzl file content.
Generate the rules . bzl file content .
def _format_rules_file(rtx, rule_name, configs, all_artifacts):
    lines = []
    lines.append("# AUTO_GENERATED, DO NOT EDIT")
    lines.append("load('@org_pubref_require_toolchain//:require.bzl', 'require')")
    lines.append("DEPS = {")
    for ws_name, artifact in all_artifacts.items():
        lines += _format_maven_jar(rtx, ws_name, artifact)
    lines.append("}")
    for name, artifacts in configs.items():
        lines += _format_config_def(rtx, rule_name + "_" + name, artifacts)
    return "\n".join(lines)
def _format_rules_file ( rtx , rule_name , configs , all_artifacts ) : lines = [ ] lines . append ( "# AUTO_GENERATED, DO NOT EDIT" ) lines . append ( "load('@org_pubref_require_toolchain//:require.bzl', 'require')" ) lines . append ( "DEPS = {" ) for ws_name , artifact in all_artifacts . items ( ) : lines += _format_maven_jar ( rtx , ws_name , artifact ) lines . append ( "}" ) for name , artifacts in configs . items ( ) : lines += _format_config_def ( rtx , rule_name + "_" + name , artifacts ) return "\n" . join ( lines )
Generate the rules.bzl file content.
Generate the rules . bzl file content .
"""Generate the rules.bzl file content.
    Args:
      rule_name: string - The name of the rule (rtx.name)
      configs: !dict<string,!dict<string,!Artifact>>
      all_artifacts: !dict<string,!Artifact>
    Returns: string
    """
rtx
rule_name
The name of the rule (rtx.name)
The name of the rule ( rtx . name )
configs
None
all_artifacts
None