aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Aiuto <aiuto@google.com>2022-08-05 20:19:27 -0400
committerTony Aiuto <aiuto@google.com>2022-08-05 20:24:37 -0400
commit8694b57ad03939fe48fde2be73576e77ba17eee4 (patch)
tree31f8b621705ef7d213c478eda1dff9e2c9357e0a
parentaf38e6dd45c1307da3b6d954a21e1061a8f9e288 (diff)
downloadbazelbuild-rules_license-8694b57ad03939fe48fde2be73576e77ba17eee4.tar.gz
Add legacy licenses([notice]) clauses to the build files.
This is an utterly stupid change. It is just to make it easier to import the code into Google. That, in turn, makes it easier to work towards aligning the code.
-rw-r--r--BUILD4
-rw-r--r--distro/BUILD3
-rw-r--r--licenses/generic/BUILD12
-rw-r--r--licenses/spdx/BUILD2
-rw-r--r--rules/BUILD2
-rw-r--r--tests/BUILD2
-rw-r--r--tools/BUILD2
7 files changed, 20 insertions, 7 deletions
diff --git a/BUILD b/BUILD
index a763238..98caf14 100644
--- a/BUILD
+++ b/BUILD
@@ -19,6 +19,8 @@ package(
default_visibility = ["//visibility:public"],
)
+licenses(["notice"])
+
license(
name = "license",
license_kinds = [
@@ -28,7 +30,7 @@ license(
)
exports_files(
- ["WORKSPACE"],
+ ["LICENSE", "WORKSPACE"],
visibility = ["//visibility:public"],
)
diff --git a/distro/BUILD b/distro/BUILD
index a35a118..0231f13 100644
--- a/distro/BUILD
+++ b/distro/BUILD
@@ -16,12 +16,13 @@ load("//:version.bzl", "version")
load("@rules_pkg//pkg:pkg.bzl", "pkg_tar")
load("@rules_pkg//pkg/releasing:defs.bzl", "print_rel_notes")
-
package(
default_visibility = ["//visibility:private"],
default_applicable_licenses = ["//:license"],
)
+licenses(["notice"])
+
alias(
name = "distro",
actual = "rules_license-%s" % version,
diff --git a/licenses/generic/BUILD b/licenses/generic/BUILD
index ba95d52..71880cf 100644
--- a/licenses/generic/BUILD
+++ b/licenses/generic/BUILD
@@ -37,16 +37,18 @@
# of the well known licenses in @rules_license//licenses/spdx:*
load("@rules_license//rules:license_kind.bzl", "license_kind")
-filegroup(
- name = "standard_package",
- srcs = ["BUILD"],
-)
-
package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//visibility:public"],
)
+licenses(["notice"])
+
+filegroup(
+ name = "standard_package",
+ srcs = ["BUILD"],
+)
+
# "none" should be used for packages which are distributed with no license of
# any kind. You can use this no-op license as a positive indication that the
# code's license terms were reviewed, so that linters will not flag it later as
diff --git a/licenses/spdx/BUILD b/licenses/spdx/BUILD
index 2ab4f35..feb0580 100644
--- a/licenses/spdx/BUILD
+++ b/licenses/spdx/BUILD
@@ -59,6 +59,8 @@ package(
default_visibility = ["//visibility:public"],
)
+licenses(["notice"])
+
filegroup(
name = "standard_package",
srcs = ["BUILD"],
diff --git a/rules/BUILD b/rules/BUILD
index f0fd218..b4dde6f 100644
--- a/rules/BUILD
+++ b/rules/BUILD
@@ -20,6 +20,8 @@ package(
default_visibility = ["//visibility:public"],
)
+licenses(["notice"])
+
filegroup(
name = "standard_package",
srcs = glob(["**"]),
diff --git a/tests/BUILD b/tests/BUILD
index f817cc4..256386a 100644
--- a/tests/BUILD
+++ b/tests/BUILD
@@ -7,6 +7,8 @@ load("@rules_license//tools:test_helpers.bzl", "golden_test")
package(default_applicable_licenses = [":license"])
+licenses(["notice"])
+
# license_kind rules generally appear in a central location per workspace. They
# are intermingled with normal target build rules
license_kind(
diff --git a/tools/BUILD b/tools/BUILD
index 03bbac1..9be1c2d 100644
--- a/tools/BUILD
+++ b/tools/BUILD
@@ -19,6 +19,8 @@ package(
default_visibility = ["//visibility:public"],
)
+licenses(["notice"])
+
py_binary(
name = "checker_demo",
srcs = ["checker_demo.py"],