mirror of https://github.com/bazelbuild/platforms
Add rules_license style declaration.
- Done for both WORKSPACE and bzlmod styles - The dependency is different because rules_license is not up to date in the BCR. I'll correct that at the next rules_license release.
This commit is contained in:
parent
3fbc687756
commit
0176b8dc7b
15
BUILD
15
BUILD
|
@ -1,6 +1,17 @@
|
||||||
package(default_visibility = ["//visibility:public"])
|
load("@rules_license//rules:license.bzl", "license")
|
||||||
|
|
||||||
licenses(["notice"])
|
package(
|
||||||
|
default_applicable_licenses = [":license"],
|
||||||
|
default_visibility = ["//visibility:public"],
|
||||||
|
)
|
||||||
|
|
||||||
|
license(
|
||||||
|
name = "license",
|
||||||
|
license_kinds = [
|
||||||
|
"@rules_license//licenses/spdx:Apache-2.0"
|
||||||
|
],
|
||||||
|
license_text = "LICENSE",
|
||||||
|
)
|
||||||
|
|
||||||
exports_files(["LICENSE"])
|
exports_files(["LICENSE"])
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
module(
|
module(
|
||||||
name = "platforms",
|
name = "platforms",
|
||||||
version = "0.0.6", # keep in sync with version.bzl
|
version = "0.0.8", # keep in sync with version.bzl
|
||||||
compatibility_level = 1,
|
compatibility_level = 1,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
bazel_dep(name = "rules_license", version = "0.0.3")
|
||||||
|
|
|
@ -1 +1,9 @@
|
||||||
workspace(name = "platforms")
|
workspace(name = "platforms")
|
||||||
|
|
||||||
|
http_archive(
|
||||||
|
name = "rules_license",
|
||||||
|
urls = [
|
||||||
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.3/rules_license-0.0.3.tar.gz",
|
||||||
|
],
|
||||||
|
# sha256 = "4865059254da674e3d18ab242e21c17f7e3e8c6b1f1421fffa4c5070f82e98b5",
|
||||||
|
)
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Include dependencies which are only needed for development here.
|
||||||
|
#
|
||||||
|
# Even if this is empty, you need it with bzlmod enable to prevent
|
||||||
|
# bzlmod from bringing in WORKSPACE too.
|
Loading…
Reference in New Issue