• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
2load(":relnotes.bzl", "print_rel_notes")
3
4package(default_visibility = ["//visibility:private"])
5
6# Build the artifact to put on the github release page.
7pkg_tar(
8    name = "rules_java-%s" % module_version(),
9    srcs = ["//:distribution"],
10    extension = "tar.gz",
11    # It is all source code, so make it read-only.
12    mode = "0444",
13    # Make it owned by root so it does not have the uid of the CI robot.
14    owner = "0.0",
15    package_dir = ".",
16    strip_prefix = ".",
17)
18
19print_rel_notes(
20    name = "relnotes",
21    archive = ":rules_java-%s" % module_version(),
22    version = module_version(),
23)
24