Skip to content

Commit

Permalink
rules_java@7.3.2 (#1226)
Browse files Browse the repository at this point in the history
* Publish bazelbuild/rules_java@7.3.2

* Update bazel version in presubmit.yml

---------

Co-authored-by: bazel.build machine account <null>
Co-authored-by: hvadehra <hvadehra@gmail.com>
  • Loading branch information
publish-to-bcr-bot[bot] and hvadehra committed Dec 21, 2023
1 parent 845a497 commit 39946e3
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 1 deletion.
86 changes: 86 additions & 0 deletions modules/rules_java/7.3.2/MODULE.bazel
@@ -0,0 +1,86 @@
module(
name = "rules_java",
version = "7.3.2",
# Requires @bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type.
bazel_compatibility = [">=7.0.0"],
compatibility_level = 1,
)

bazel_dep(name = "platforms", version = "0.0.4")
bazel_dep(name = "rules_cc", version = "0.0.2")
bazel_dep(name = "bazel_skylib", version = "1.2.0")

# Required by @remote_java_tools, which is loaded via module extension.
bazel_dep(name = "rules_proto", version = "4.0.0")
bazel_dep(name = "rules_license", version = "0.0.3")

register_toolchains("//toolchains:all")

toolchains = use_extension("//java:extensions.bzl", "toolchains")

# Declare remote java tools repos
use_repo(toolchains, "remote_java_tools")
use_repo(toolchains, "remote_java_tools_linux")
use_repo(toolchains, "remote_java_tools_windows")
use_repo(toolchains, "remote_java_tools_darwin_x86_64")
use_repo(toolchains, "remote_java_tools_darwin_arm64")

# Declare local jdk repo
use_repo(toolchains, "local_jdk")

register_toolchains(
"@local_jdk//:runtime_toolchain_definition",
"@local_jdk//:bootstrap_runtime_toolchain_definition",
)

# Declare all remote jdk toolchain config repos
JDKS = {
# Must match JDK repos defined in remote_jdk11_repos()
"11": [
"linux",
"linux_aarch64",
"linux_ppc64le",
"linux_s390x",
"macos",
"macos_aarch64",
"win",
"win_arm64",
],
# Must match JDK repos defined in remote_jdk17_repos()
"17": [
"linux",
"linux_aarch64",
"linux_ppc64le",
"linux_s390x",
"macos",
"macos_aarch64",
"win",
"win_arm64",
],
# Must match JDK repos defined in remote_jdk21_repos()
"21": [
"linux",
"linux_aarch64",
"macos",
"macos_aarch64",
"win",
],
}

REMOTE_JDK_REPOS = [("remotejdk" + version + "_" + platform) for version in JDKS for platform in JDKS[version]]

[use_repo(
toolchains,
repo + "_toolchain_config_repo",
) for repo in REMOTE_JDK_REPOS]

[register_toolchains("@" + name + "_toolchain_config_repo//:all") for name in REMOTE_JDK_REPOS]

# Dev dependencies
bazel_dep(name = "rules_pkg", version = "0.9.1", dev_dependency = True)

# Override rules_python version to deal with #161 and https://github.com/bazelbuild/bazel/issues/20458
single_version_override(
module_name = "rules_python",
version = "0.24.0",
)
9 changes: 9 additions & 0 deletions modules/rules_java/7.3.2/presubmit.yml
@@ -0,0 +1,9 @@
matrix:
platform: ["centos7", "debian10", "macos", "ubuntu2004", "windows"]
tasks:
verify_build_targets:
name: "Verify build targets"
platform: ${{ platform }}
bazel: 7.0.0
build_targets:
- "@rules_java//java/..."
5 changes: 5 additions & 0 deletions modules/rules_java/7.3.2/source.json
@@ -0,0 +1,5 @@
{
"integrity": "sha256-MSGgBYixWBvXwfm1UFmWKeWtzBG6nGX0grvVz+R/3zA=",
"strip_prefix": "",
"url": "https://github.com/bazelbuild/rules_java/releases/download/7.3.2/rules_java-7.3.2.tar.gz"
}
3 changes: 2 additions & 1 deletion modules/rules_java/metadata.json
Expand Up @@ -27,7 +27,8 @@
"7.1.0",
"7.2.0",
"7.3.0",
"7.3.1"
"7.3.1",
"7.3.2"
],
"yanked_versions": {
"6.3.3": "6.3.3 is a broken version.",
Expand Down

0 comments on commit 39946e3

Please sign in to comment.