-
Notifications
You must be signed in to change notification settings - Fork 6
/
BUILD
40 lines (35 loc) · 1.18 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_pkg//pkg/releasing:defs.bzl", "print_rel_notes")
load("@rules_pkg//pkg/releasing:git.bzl", "git_changelog")
package(
default_visibility = ["//visibility:private"],
)
# Build the artifact to put on the github release page.
pkg_tar(
name = "rules_jdt",
srcs = ["//:distribution"],
extension = "tar.gz",
mode = "0444",
owner = "0.0",
package_dir = ".",
strip_prefix = ".",
)
# this currently fails because of https://github.com/bazelbuild/rules_pkg/issues/435
print_rel_notes(
name = "relnotes",
outs = ["relnotes.txt"],
changelog = ":changelog",
deps_method = "rules_jdt_dependencies",
org="salesforce",
repo = "bazel-jdt-java-toolchain",
setup_file = "jdt:repositories.bzl",
toolchains_method = "rules_jdt_toolchains",
artifact_name = "rules_jdt.tar.gz",
version = "latest",
)
# this currently fails because of https://github.com/bazelbuild/rules_pkg/issues/437
git_changelog(
name = "changelog",
out = "changelog.txt",
)
# see https://github.com/bazelbuild/rules_pkg/blob/05d4ebe47cddccb493b3670f9ca39eff2858ac99/pkg/distro/BUILD for other interesting things (eg., stardoc)