From 6c406f6d79d81662935168fda43a5fa11aaf2388 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 13:56:26 +0200 Subject: [PATCH] rules_java@8.0.1 (#2914) Release: https://github.com/bazelbuild/rules_java/releases/tag/8.0.1 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: bazel.build machine account --- modules/rules_java/8.0.1/MODULE.bazel | 95 ++++++++++++++++++++++++++ modules/rules_java/8.0.1/presubmit.yml | 16 +++++ modules/rules_java/8.0.1/source.json | 5 ++ modules/rules_java/metadata.json | 3 +- 4 files changed, 118 insertions(+), 1 deletion(-) create mode 100644 modules/rules_java/8.0.1/MODULE.bazel create mode 100644 modules/rules_java/8.0.1/presubmit.yml create mode 100644 modules/rules_java/8.0.1/source.json diff --git a/modules/rules_java/8.0.1/MODULE.bazel b/modules/rules_java/8.0.1/MODULE.bazel new file mode 100644 index 00000000000..308c4934750 --- /dev/null +++ b/modules/rules_java/8.0.1/MODULE.bazel @@ -0,0 +1,95 @@ +module( + name = "rules_java", + version = "8.0.1", + bazel_compatibility = [">=7.3.2"], + compatibility_level = 1, +) + +bazel_dep(name = "platforms", version = "0.0.4") +bazel_dep(name = "rules_cc", version = "0.0.10") +bazel_dep(name = "bazel_features", version = "1.11.0") +bazel_dep(name = "bazel_skylib", version = "1.6.1") +bazel_dep(name = "protobuf", version = "27.0") + +# Required by @remote_java_tools, which is loaded via module extension. +bazel_dep(name = "rules_proto", version = "6.0.2") +bazel_dep(name = "rules_license", version = "0.0.3") +bazel_dep(name = "abseil-cpp", version = "20230802.1", repo_name = "com_google_absl") + +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_jdk8_repos() + "8": [ + "linux", + "linux_aarch64", + "linux_s390x", + "macos", + "macos_aarch64", + "windows", + ], + # 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", + "linux_ppc64le", + "linux_s390x", + "macos", + "macos_aarch64", + "win", + "win_arm64", + ], +} + +REMOTE_JDK_REPOS = [(("remote_jdk" if version == "8" else "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) +bazel_dep(name = "stardoc", version = "0.7.1", dev_dependency = True) diff --git a/modules/rules_java/8.0.1/presubmit.yml b/modules/rules_java/8.0.1/presubmit.yml new file mode 100644 index 00000000000..a99433433d0 --- /dev/null +++ b/modules/rules_java/8.0.1/presubmit.yml @@ -0,0 +1,16 @@ +matrix: + platform: + - centos7 + - debian10 + - macos + - ubuntu2004 + - windows + bazel: + - 7.x +tasks: + verify_build_targets: + name: "Verify build targets" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@rules_java//java/..." diff --git a/modules/rules_java/8.0.1/source.json b/modules/rules_java/8.0.1/source.json new file mode 100644 index 00000000000..9cb06325b1e --- /dev/null +++ b/modules/rules_java/8.0.1/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-gRS1OLDx9SacSad+FbutgsCpxaJNpMow9oBytPJSG+8=", + "strip_prefix": "", + "url": "https://github.com/bazelbuild/rules_java/releases/download/8.0.1/rules_java-8.0.1.tar.gz" +} diff --git a/modules/rules_java/metadata.json b/modules/rules_java/metadata.json index dc37c5f482d..c5ad7fc964a 100644 --- a/modules/rules_java/metadata.json +++ b/modules/rules_java/metadata.json @@ -55,7 +55,8 @@ "7.12.1", "8.0.0-rc1", "8.0.0-rc2", - "8.0.0" + "8.0.0", + "8.0.1" ], "yanked_versions": { "6.3.3": "6.3.3 is a broken version.",