Skip to content

Commit

Permalink
bazel: Attach license metadata to the main repo
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum authored and kyakdan committed Aug 19, 2024
1 parent 959cde9 commit 8beffe0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
load("@buildifier_prebuilt//:rules.bzl", "buildifier", "buildifier_test")
load("@rules_license//rules:license.bzl", "license")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("//bazel:compat.bzl", "SKIP_ON_WINDOWS")

license(
name = "license",
copyright_notice = "Copyright 2024 Code Intelligence GmbH",
license_text = "LICENSE",
visibility = ["//visibility:public"],
)

exports_files(["LICENSE"])

pkg_tar(
Expand Down
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ bazel_dep(name = "rules_java", version = "7.7.0")
bazel_dep(name = "rules_jni", version = "0.9.1")
bazel_dep(name = "rules_jvm_external", version = "6.2")
bazel_dep(name = "rules_kotlin", version = "1.9.5")
bazel_dep(name = "rules_license", version = "0.0.8")
bazel_dep(name = "rules_pkg", version = "0.9.1")
bazel_dep(name = "toolchains_llvm", version = "0.10.3")

Expand Down
3 changes: 3 additions & 0 deletions REPO.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Applies to all packages in the Jazzer main repository, but not to external repositories.
# Override on a per-package basis via `package(default_applicable_licenses = [...])` if necessary.
repo(default_applicable_licenses = ["//:license"])

0 comments on commit 8beffe0

Please sign in to comment.