Skip to content

Commit 19f06f9

Browse files
Release: https://github.com/bazelbuild/rules_java/releases/tag/8.6.3 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: bazel.build machine account <null>
1 parent 810fbf0 commit 19f06f9

File tree

4 files changed

+126
-1
lines changed

4 files changed

+126
-1
lines changed
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
module(
2+
name = "rules_java",
3+
version = "8.6.3",
4+
bazel_compatibility = [">=6.4.0"],
5+
compatibility_level = 1,
6+
)
7+
8+
bazel_dep(name = "platforms", version = "0.0.4")
9+
bazel_dep(name = "rules_cc", version = "0.0.15")
10+
bazel_dep(name = "bazel_features", version = "1.11.0")
11+
bazel_dep(name = "bazel_skylib", version = "1.6.1")
12+
bazel_dep(name = "protobuf", version = "27.0", repo_name = "com_google_protobuf")
13+
14+
# Required by @remote_java_tools, which is loaded via module extension.
15+
bazel_dep(name = "rules_license", version = "0.0.3")
16+
bazel_dep(name = "abseil-cpp", version = "20230802.1", repo_name = "com_google_absl")
17+
18+
register_toolchains("//toolchains:all")
19+
20+
toolchains = use_extension("//java:extensions.bzl", "toolchains")
21+
22+
# Declare remote java tools repos
23+
use_repo(toolchains, "remote_java_tools")
24+
use_repo(toolchains, "remote_java_tools_linux")
25+
use_repo(toolchains, "remote_java_tools_windows")
26+
use_repo(toolchains, "remote_java_tools_darwin_x86_64")
27+
use_repo(toolchains, "remote_java_tools_darwin_arm64")
28+
29+
# Declare local jdk repo
30+
use_repo(toolchains, "local_jdk")
31+
32+
register_toolchains(
33+
"@local_jdk//:runtime_toolchain_definition",
34+
"@local_jdk//:bootstrap_runtime_toolchain_definition",
35+
)
36+
37+
# Declare all remote jdk toolchain config repos
38+
JDKS = {
39+
# Must match JDK repos defined in remote_jdk8_repos()
40+
"8": [
41+
"linux",
42+
"linux_aarch64",
43+
"linux_s390x",
44+
"macos",
45+
"macos_aarch64",
46+
"windows",
47+
],
48+
# Must match JDK repos defined in remote_jdk11_repos()
49+
"11": [
50+
"linux",
51+
"linux_aarch64",
52+
"linux_ppc64le",
53+
"linux_s390x",
54+
"macos",
55+
"macos_aarch64",
56+
"win",
57+
"win_arm64",
58+
],
59+
# Must match JDK repos defined in remote_jdk17_repos()
60+
"17": [
61+
"linux",
62+
"linux_aarch64",
63+
"linux_ppc64le",
64+
"linux_s390x",
65+
"macos",
66+
"macos_aarch64",
67+
"win",
68+
"win_arm64",
69+
],
70+
# Must match JDK repos defined in remote_jdk21_repos()
71+
"21": [
72+
"linux",
73+
"linux_aarch64",
74+
"linux_ppc64le",
75+
"linux_s390x",
76+
"macos",
77+
"macos_aarch64",
78+
"win",
79+
"win_arm64",
80+
],
81+
}
82+
83+
REMOTE_JDK_REPOS = [(("remote_jdk" if version == "8" else "remotejdk") + version + "_" + platform) for version in JDKS for platform in JDKS[version]]
84+
85+
[use_repo(
86+
toolchains,
87+
repo + "_toolchain_config_repo",
88+
) for repo in REMOTE_JDK_REPOS]
89+
90+
[register_toolchains("@" + name + "_toolchain_config_repo//:all") for name in REMOTE_JDK_REPOS]
91+
92+
# Compatibility layer
93+
compat = use_extension("//java:rules_java_deps.bzl", "compatibility_proxy")
94+
use_repo(compat, "compatibility_proxy")
95+
96+
# Dev dependencies
97+
bazel_dep(name = "rules_pkg", version = "0.9.1", dev_dependency = True)
98+
bazel_dep(name = "stardoc", version = "0.7.1", dev_dependency = True)
99+
bazel_dep(name = "rules_shell", version = "0.2.0", dev_dependency = True)
100+
bazel_dep(name = "rules_testing", version = "0.7.0", dev_dependency = True)
101+
102+
test_repositories = use_extension("//test:repositories.bzl", "test_repositories_ext", dev_dependency = True)
103+
use_repo(test_repositories, "guava", "truth")
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
matrix:
2+
platform:
3+
- centos7
4+
- debian10
5+
- macos
6+
- ubuntu2004
7+
- windows
8+
bazel:
9+
- 7.x
10+
tasks:
11+
verify_build_targets:
12+
name: "Verify build targets"
13+
platform: ${{ platform }}
14+
bazel: ${{ bazel }}
15+
build_targets:
16+
- "@rules_java//java/..."
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"integrity": "sha256-bYxtXNhv7QMe5IQk8jj6NfM6vJkh/ZfdSuERmin8gH8=",
3+
"strip_prefix": "",
4+
"url": "https://github.com/bazelbuild/rules_java/releases/download/8.6.3/rules_java-8.6.3.tar.gz"
5+
}

modules/rules_java/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
"8.5.1",
7373
"8.6.0",
7474
"8.6.1",
75-
"8.6.2"
75+
"8.6.2",
76+
"8.6.3"
7677
],
7778
"yanked_versions": {
7879
"6.3.3": "6.3.3 is a broken version.",

0 commit comments

Comments
 (0)