def convert_modules_to_external_resources(buck_modules, modules_with_resources):
    """ Converts modules to a map with resources to keep them outside of module jars """
    result = {}

    for module in modules_with_resources:
        result["buck-modules-resources/{}".format(module)] = "{}_resources".format(buck_modules[module])

    return result