aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornickreid <nickreid@google.com>2023-10-10 09:20:55 -0700
committerCopybara-Service <copybara-worker@google.com>2023-10-10 09:21:32 -0700
commit369a8dab056f29c73c0da6502a15789cb61b0f4d (patch)
treec9d1d2d74bd084548f2f9b63c3b1a5a5f5d9705f
parentad516c65ed9300efbc16d2d4db4dfd83f166792b (diff)
downloadbazelbuild-kotlin-rules-369a8dab056f29c73c0da6502a15789cb61b0f4d.tar.gz
Expose the license target in OSS so that we can also expose package(default_applicable_license) declarations.
PiperOrigin-RevId: 572272340 Change-Id: I38d743b77b03fe301a2ed6f2827cd9cf09de2b75
-rw-r--r--BUILD11
-rw-r--r--WORKSPACE10
-rw-r--r--copy.bara.sky2
3 files changed, 22 insertions, 1 deletions
diff --git a/BUILD b/BUILD
index 5b2df97..2bbd42e 100644
--- a/BUILD
+++ b/BUILD
@@ -13,8 +13,13 @@
# limitations under the License.
load("//bazel:stubs.bzl", "integration_test_filegroup")
+load("@rules_license//rules:license.bzl", "license")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
+package(
+ default_applicable_licenses = ["//:license"],
+)
+
licenses(["notice"])
exports_files(["LICENSE"])
@@ -31,3 +36,9 @@ bzl_library(
srcs = ["visibility.bzl"],
visibility = [":internal"],
)
+
+license(
+ name = "license",
+ package_name = "rules_kotlin",
+ visibility = [":internal"],
+)
diff --git a/WORKSPACE b/WORKSPACE
index e7a7d09..1db6b76 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -47,6 +47,16 @@ http_archive(
)
http_archive(
+ name = "rules_license",
+ sha256 = "4531deccb913639c30e5c7512a054d5d875698daeb75d8cf90f284375fe7c360",
+ urls = [
+ "https://github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz",
+ ],
+)
+load("@rules_license//:deps.bzl", "rules_license_dependencies")
+rules_license_dependencies()
+
+http_archive(
name = "rules_java",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_java/releases/download/5.5.0/rules_java-5.5.0.tar.gz",
diff --git a/copy.bara.sky b/copy.bara.sky
index 6b06180..cd10621 100644
--- a/copy.bara.sky
+++ b/copy.bara.sky
@@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-1644638401 \ No newline at end of file
+-591166116 \ No newline at end of file