1# Copyright 2022 The Bazel Authors. All rights reserved. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15load("@rules_license//rules:license.bzl", "license") 16load("@rules_license//rules:package_info.bzl", "package_info") 17load("@rules_license//:version.bzl", "version") 18 19package( 20 default_applicable_licenses = [":license", ":package_info"], 21 default_visibility = ["//visibility:public"], 22) 23 24licenses(["notice"]) 25 26license( 27 name = "license", 28 license_kinds = [ 29 "@rules_license//licenses/spdx:Apache-2.0", 30 ], 31 license_text = "LICENSE", 32) 33 34package_info( 35 name = "package_info", 36 package_name = "rules_license", 37 package_version = version, 38) 39 40exports_files( 41 ["LICENSE", "WORKSPACE"], 42 visibility = ["//visibility:public"], 43) 44 45exports_files( 46 glob([ 47 "*.bzl", 48 ]), 49 visibility = ["//visibility:public"], 50) 51 52filegroup( 53 name = "standard_package", 54 srcs = glob([ 55 "*.bzl", 56 "*.md", 57 ]) + [ 58 "MODULE.bazel", 59 "BUILD", 60 "LICENSE", 61 "WORKSPACE.bzlmod", 62 ], 63 visibility = ["//distro:__pkg__"], 64) 65