maven/internal/maven_repository.bzl
def _format_config_def(rtx, name, artifacts):
    """Format a macro function for a given configuration.
    Args:
      rtx: repository_ctx - the context.
      name: string - the configuration name.
      artifacts: !dict<string,!Artifact>
    Returns: !list<string>
    """
    lines = []
    lines.append("def %s(deps = DEPS, excludes = [], overrides = {}):" % name)
    lines.append("  require([")
    for ws_name, artifact in artifacts.items():
        if not should_omit(rtx.attr.omit, artifact):
            lines.append("    '%s'," % ws_name)
    lines.append("  ], deps = deps, excludes = excludes, overrides = overrides)")
    return lines
Format a macro function for a given configuration.
    Args:
      rtx: repository_ctx - the context.
      name: string - the configuration name.
      artifacts: !dict<string,!Artifact>
    Returns: !list<string>
    
Format a macro function for a given configuration.
Format a macro function for a given configuration .
def _format_config_def(rtx, name, artifacts):
    lines = []
    lines.append("def %s(deps = DEPS, excludes = [], overrides = {}):" % name)
    lines.append("  require([")
    for ws_name, artifact in artifacts.items():
        if not should_omit(rtx.attr.omit, artifact):
            lines.append("    '%s'," % ws_name)
    lines.append("  ], deps = deps, excludes = excludes, overrides = overrides)")
    return lines
def _format_config_def ( rtx , name , artifacts ) : lines = [ ] lines . append ( "def %s(deps = DEPS, excludes = [], overrides = {}):" % name ) lines . append ( "  require([" ) for ws_name , artifact in artifacts . items ( ) : if not should_omit ( rtx . attr . omit , artifact ) : lines . append ( "    '%s'," % ws_name ) lines . append ( "  ], deps = deps, excludes = excludes, overrides = overrides)" ) return lines
Format a macro function for a given configuration.
Format a macro function for a given configuration .
"""Format a macro function for a given configuration.
    Args:
      rtx: repository_ctx - the context.
      name: string - the configuration name.
      artifacts: !dict<string,!Artifact>
    Returns: !list<string>
    """
rtx
None
name
the configuration name.
the configuration name .
artifacts
None