Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Publish bazelbuild/[email protected]

* Sort versions in metadata.json

---------

Co-authored-by: null <null>
Co-authored-by: keertk <[email protected]>
  • Loading branch information
publish-to-bcr-bot[bot] and keertk authored Sep 14, 2023
1 parent 2ea05f3 commit 8b3c48a
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 0 deletions.
75 changes: 75 additions & 0 deletions modules/rules_java/6.3.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
module(
name = "rules_java",
version = "6.3.1",
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")

# 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_jdk20_repos()
"20": [
"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//:toolchain") for name in REMOTE_JDK_REPOS]

# Dev dependencies
bazel_dep(name = "rules_pkg", version = "0.5.1", dev_dependency = True)
8 changes: 8 additions & 0 deletions modules/rules_java/6.3.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
matrix:
platform: ["centos7", "debian10", "macos", "ubuntu2004", "windows"]
tasks:
verify_build_targets:
name: "Verify build targets"
platform: ${{ platform }}
build_targets:
- "@rules_java//java/..."
5 changes: 5 additions & 0 deletions modules/rules_java/6.3.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"integrity": "sha256-EXoSJ82vgTogobunip8tj7MIQQAMM+Ly0qZAvSJMkoI=",
"strip_prefix": "",
"url": "https://github.com/bazelbuild/rules_java/releases/download/6.3.1/rules_java-6.3.1.tar.gz"
}
1 change: 1 addition & 0 deletions modules/rules_java/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"6.1.1",
"6.2.2",
"6.3.0",
"6.3.1",
"6.4.0",
"6.5.0",
"6.5.1"
Expand Down

0 comments on commit 8b3c48a

Please sign in to comment.