diff options
Diffstat (limited to 'examples/my_org/compliance')
-rw-r--r-- | examples/my_org/compliance/BUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/my_org/compliance/BUILD b/examples/my_org/compliance/BUILD new file mode 100644 index 0000000..074b21e --- /dev/null +++ b/examples/my_org/compliance/BUILD @@ -0,0 +1,31 @@ +# 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", + ], +) |