def _get_license_info()

in rules_jvm_export/jvm_export/support/pom_generator.py [0:0]


def _get_license_info(license):
    if license == "apache" or license == "Apache-2.0":
        return {
            "name": "Apache-2.0",
            "url": "https://www.apache.org/licenses/LICENSE-2.0.txt",
        }
    if license == "mit" or license == "MIT":
        return {
            "name": "MIT",
            "url": "https://opensource.org/licenses/MIT",
        }
    raise ValueError("expected Apache-2.0 or MIT")