Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rules_java@7.4.0 #1453

Merged
merged 5 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions modules/rules_java/7.4.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
module(
name = "rules_java",
version = "7.4.0",
# 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",
)
16 changes: 16 additions & 0 deletions modules/rules_java/7.4.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -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/..."
5 changes: 5 additions & 0 deletions modules/rules_java/7.4.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"integrity": "sha256-l27wi0nJKXQfIBeQ5Z44B8cq2B9CjIvJU82+/1/tFes=",
"strip_prefix": "",
"url": "https://github.com/bazelbuild/rules_java/releases/download/7.4.0/rules_java-7.4.0.tar.gz"
}
88 changes: 45 additions & 43 deletions modules/rules_java/metadata.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,47 @@
{
"homepage": "https://github.com/bazelbuild/rules_java",
"maintainers": [
{
"email": "bcr-maintainers@bazel.build",
"name": "No Maintainer Specified"
}
],
"versions": [
"4.0.0",
"5.0.0",
"5.1.0",
"5.3.5",
"5.4.0",
"5.4.1",
"5.5.0",
"5.5.1",
"6.0.0",
"6.1.0",
"6.1.1",
"6.2.2",
"6.3.0",
"6.3.1",
"6.3.2",
"6.3.3",
"6.4.0",
"6.5.0",
"6.5.1",
"6.5.2",
"7.0.0",
"7.0.6",
"7.1.0",
"7.2.0",
"7.3.0",
"7.3.1",
"7.3.2"
],
"yanked_versions": {
"6.3.3": "6.3.3 is a broken version.",
"7.0.0": "7.0.0 is a broken version."
},
"repository": [
"github:bazelbuild/rules_java"
]
"homepage": "https://github.com/bazelbuild/rules_java",
"maintainers": [
{
"email": "hvd@google.com",
"github": "hvadehra",
"name": "Hemanshu Vadehra"
}
],
"versions": [
"4.0.0",
"5.0.0",
"5.1.0",
"5.3.5",
"5.4.0",
"5.4.1",
"5.5.0",
"5.5.1",
"6.0.0",
"6.1.0",
"6.1.1",
"6.2.2",
"6.3.0",
"6.3.1",
"6.3.2",
"6.3.3",
"6.4.0",
"6.5.0",
"6.5.1",
"6.5.2",
"7.0.0",
"7.0.6",
"7.1.0",
"7.2.0",
"7.3.0",
"7.3.1",
"7.3.2",
"7.4.0"
],
"yanked_versions": {
"6.3.3": "6.3.3 is a broken version.",
"7.0.0": "7.0.0 is a broken version."
},
"repository": [
"github:bazelbuild/rules_java"
]
}
Loading