diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-05-26 10:11:34 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-05-26 10:11:34 +0000 |
commit | 45d79809d5df535e96787163d9b0a8b41f3ebc65 (patch) | |
tree | 39314478665e3c080e3df6fe4a97609182f089b5 /examples/my_org | |
parent | 8a99d2b6dff36f04be445f3c5e8f69874da57a04 (diff) | |
parent | 0f22c081a0b9df29e574400ebf7003014b04a06d (diff) | |
download | bazelbuild-rules_license-45d79809d5df535e96787163d9b0a8b41f3ebc65.tar.gz |
Snap for 10209341 from 0f22c081a0b9df29e574400ebf7003014b04a06d to mainline-healthfitness-release
Change-Id: Ic10f7c0cf93d792c68e0008047a431665199de54
Diffstat (limited to 'examples/my_org')
-rw-r--r-- | examples/my_org/compliance/BUILD | 31 | ||||
-rw-r--r-- | examples/my_org/licenses/BUILD | 15 |
2 files changed, 14 insertions, 32 deletions
diff --git a/examples/my_org/compliance/BUILD b/examples/my_org/compliance/BUILD deleted file mode 100644 index 074b21e..0000000 --- a/examples/my_org/compliance/BUILD +++ /dev/null @@ -1,31 +0,0 @@ -# Example license policy definitions. - -load("@rules_license//rules:license_policy.bzl", "license_policy") - -package(default_visibility = ["//examples:__subpackages__"]) - -# license_policy rules generally appear in a central location per workspace. They -# are intermingled with normal target build rules -license_policy( - name = "production_service", - conditions = [ - "notice", - "restricted_if_statically_linked", - ], -) - -license_policy( - name = "mobile_application", - conditions = [ - "notice", - ], -) - -license_policy( - name = "special_whitelisted_app", - # There could be a whitelist of targets here. - conditions = [ - "notice", - "whitelist:acme_corp_paid", - ], -) diff --git a/examples/my_org/licenses/BUILD b/examples/my_org/licenses/BUILD index d9d5c25..c200d37 100644 --- a/examples/my_org/licenses/BUILD +++ b/examples/my_org/licenses/BUILD @@ -1,3 +1,16 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # Example license kind definitions. # We expect that all license_kind rules used by an organization exist in a @@ -53,6 +66,6 @@ license_kind( license_kind( name = "acme_corp_paid", conditions = [ - "whitelist:acme_corp_paid", + "allowlist:acme_corp_paid", ], ) |